2024-02-04 03:25:06 +01:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
2024-02-04 09:52:47 +01:00
|
|
|
using System;
|
2024-02-04 03:25:06 +01:00
|
|
|
using UnityEngine;
|
2024-02-04 09:52:47 +01:00
|
|
|
using UnityEngine.Events;
|
2024-02-04 03:25:06 +01:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2024-02-04 03:25:06 +01:00
|
|
|
void Start()
|
|
|
|
{
|
2024-02-04 09:52:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public void playerDied(int who)
|
|
|
|
{
|
|
|
|
Debug.Break();
|
2024-02-04 03:25:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
2024-02-04 09:52:47 +01:00
|
|
|
|
2024-02-04 03:25:06 +01:00
|
|
|
}
|
|
|
|
}
|