コード例 #1
0
 void OnDestroy()
 {
     _instance = null;
     if (LootManager.Instance != null)
     {
         LootManager.Instance.ClearLootObject();
     }
 }
コード例 #2
0
    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;
    }
コード例 #3
0
 void OnDestroy()
 {
     s_Sigleton = null;
 }
コード例 #4
0
 void Awake()
 {
     s_Sigleton = this;
 }