void OnDestroy() { _instance = null; if (LootManager.Instance != null) { LootManager.Instance.ClearLootObject(); } }
void Awake() { _completeTimeScore = 0; if (_instance != null) { Debug.LogError("BattleSummary: Another GameLauncher has already been created previously. " + gameObject.name + " is goning to be destroyed."); Destroy(this); return; } _instance = this; }
void OnDestroy() { s_Sigleton = null; }
void Awake() { s_Sigleton = this; }