Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
0
 void SetInitialReferences()
 {
     gameManagerMaster = GetComponent <GameManager_Master> ();
 }
Ejemplo n.º 3
0
 void SetInitialReferences()
 {
     gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master> ();
     playerMaster      = GetComponent <Player_Master> ();
 }