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