void SetInitialReferences() { if (GameManager_References._player != null) { playerMaster = GameManager_References._player.GetComponent <Player_Master>(); } }
void SetInitialReferences() { destructibleMaster = GetComponent <Destructible_Master>(); playerMaster = GameObject.FindWithTag("Player").GetComponent <Player_Master>(); if (GetComponent <Item_Master>() == null) { Destroy(this); } }
void SetInitialReferences() { gunMaster = GetComponent <Gun_Master>(); if (GetComponent <Animator>() != null) { myAnimator = GetComponent <Animator>(); } if (GameManager_References._player != null) { playerMaster = GameManager_References._player.GetComponent <Player_Master>(); ammoBox = GameManager_References._player.GetComponent <Player_AmmoBox>(); } }
void SetInitialReferences() { playerMaster = GetComponent <Player_Master>(); }
void SetInitialReferences() { inventoryUIScript = GameObject.Find("GameManager").GetComponent <GameManager_ToggleInventoryUI>(); playerMaster = GetComponent <Player_Master>(); }
void SetInitialReferences() { gameManagerMaster = GameObject.Find("GameManager").GetComponent <GameManager_Master>(); playerMaster = GetComponent <Player_Master>(); }