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;
    }
Beispiel #3
0
 void OnDestroy()
 {
     s_Sigleton = null;
 }
Beispiel #4
0
 void Awake()
 {
     s_Sigleton = this;
 }