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.
CrowdControl/Assets/Scripts/Dev/GameManager.cs

40 lines
751 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance = null;
7 days ago
public GameObject LevelCompleteParticleEffectObj;
private void Awake()
{
//if (Instance is null)
Instance = this;
//else
//{
// DestroyImmediate(this);
//}
}
public GameObject ReviveCanvas;
public ReviveOnClick reviveOnClick;
public void OnRevival()
{
if (ReviveCanvas != null)
{
ReviveCanvas.SetActive(false);
reviveOnClick.Was = false;
}
else
{
Debug.Log("Revival Canvas == null");
}
}
}