void SetInitialReferences()
 {
     gameMangagerMaster = GetComponent <GameManager_Master>();
     if (toggleInventoryButton == "")
     {
         Debug.LogWarning("Type in the name of the button to toggle inventory");
         this.enabled = false;
     }
 }
Exemplo n.º 2
0
        void SetInitialReferences()
        {
            gameManagerMaster = GetComponent <GameManager_Master> ();

            if (toggleInventory == "Offense")
            {
                Debug.LogWarning("Please type in the name of the button used to toggle the inventory");
                this.enabled = false;
            }
        }
 void SetInitialReferences()
 {
     gameManagerMaster = GetComponent <GameManager_Master> ();
 }
Exemplo n.º 4
0
 void SetInitialReferences()
 {
     gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master>();
     playerMaster      = GetComponent <Player_Master>();
 }