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.
30 lines
495 B
C#
30 lines
495 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()
|
|
{
|
|
ReviveCanvas.gameObject.SetActive(false);
|
|
}
|
|
|
|
}
|