fgm24/Assets/Scripts/Managers/GameManager.cs

47 lines
764 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;
2024-02-04 10:04:07 +01:00
private string penisSuriveTime = "";
2024-02-04 09:52:47 +01:00
void Awake()
{
2024-02-04 10:04:07 +01:00
if (Instance == null)
2024-02-04 09:52:47 +01:00
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
2024-02-04 10:04:07 +01:00
else
{
Destroy(gameObject);
}
2024-02-04 09:52:47 +01:00
}
void Start()
{
2024-02-04 09:52:47 +01:00
}
public void playerDied(int who)
{
Debug.Break();
}
2024-02-04 10:04:07 +01:00
public void setTime(string t) {
penisSuriveTime = t;
}
// Update is called once per frame
void Update()
{
2024-02-04 09:52:47 +01:00
}
}