void SetInitialReferences() { if (GameManagerReferences._player != null) { playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>(); } }
void SetInitialReferences() { if (GetComponent <ItemMaster>() == null) { Destroy(this); } if (GameManagerReferences._player != null) { playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>(); } destructibleMaster = GetComponent <DestructibleMaster>(); }
void SetInitialReferences() { gunMaster = GetComponent <GunMaster>(); if (GetComponent <Animator>() != null) { myAnimator = GetComponent <Animator>(); } if (GameManagerReferences._player != null) { playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>(); ammoBox = GameManagerReferences._player.GetComponent <PlayerAmmoBox>(); } }
void SetInitialReferences() { inventoryUIScript = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerToggleInventoryUI>(); playerMaster = GetComponent <PlayerMaster>(); }
void SetInitialReferences() { playerMaster = GetComponent <PlayerMaster>(); }
void SetInitialReferences() { gameManagerMaster = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerMaster>(); playerMaster = GetComponent <PlayerMaster>(); }