fgm24/Assets/Scripts/Managers/GameManager.cs

39 lines
614 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
2024-02-04 09:52:47 +01:00
using System;
using UnityEngine;
2024-02-04 09:52:47 +01:00
using UnityEngine.Events;
public class GameManager : MonoBehaviour
{
2024-02-04 09:52:47 +01:00
public static GameManager Instance { get; private set; }
public Action OnPlayerDied;
void Awake()
{
if (Instance != null)
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
Destroy(gameObject);
}
void Start()
{
2024-02-04 09:52:47 +01:00
}
public void playerDied(int who)
{
Debug.Break();
}
// Update is called once per frame
void Update()
{
2024-02-04 09:52:47 +01:00
}
}