void SetInitialReferences() { gameMangagerMaster = GetComponent <GameManager_Master>(); if (toggleInventoryButton == "") { Debug.LogWarning("Type in the name of the button to toggle inventory"); this.enabled = false; } }
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> (); }
void SetInitialReferences() { gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master>(); playerMaster = GetComponent <Player_Master>(); }