void OnDestroy() { if (_instance == this) { _instance = null; } }
void Awake() { if (_instance != null) { Debug.LogError("More than two instances of ScorchGameManager exist. Destroying this one"); Destroy(this.transform.root.gameObject); return; } else { _instance = this; } }