You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
510 B
C#
31 lines
510 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GameManager : MonoBehaviour
|
|
{
|
|
public static GameManager Instance = null;
|
|
|
|
private void Awake()
|
|
{
|
|
if (Instance is null)
|
|
Instance = this;
|
|
else
|
|
{
|
|
DestroyImmediate(this);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public GameObject ReviveCanvas;
|
|
|
|
public void OnRevival()
|
|
{
|
|
if (ReviveCanvas != null)
|
|
ReviveCanvas.SetActive(false);
|
|
}
|
|
|
|
}
|