Пример #1
0
        void SetInitialReferences()
        {
            gameManagerMaster = GetComponent <GameManager_Master> ();

            //Check if button has been set, show warning if not
            if (toggleInventoryButton == "")
            {
                Debug.LogWarning("Please type name of button used to toggle inventory in GameManager_ToggleInventoryUI");
                this.enabled = false;
            }
        }
Пример #2
0
 void SetInitialReferences()
 {
     gameManagerMaster = GetComponent <GameManager_Master> ();
 }
Пример #3
0
 void SetInitialReferences()
 {
     gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master> ();
     playerMaster      = GetComponent <Player_Master> ();
 }