Beispiel #1
0
 void SetInitialReferences()
 {
     if (GameManagerReferences._player != null)
     {
         playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>();
     }
 }
Beispiel #2
0
 void SetInitialReferences()
 {
     if (GetComponent <ItemMaster>() == null)
     {
         Destroy(this);
     }
     if (GameManagerReferences._player != null)
     {
         playerMaster = GameManagerReferences._player.GetComponent <PlayerMaster>();
     }
     destructibleMaster = GetComponent <DestructibleMaster>();
 }
Beispiel #3
0
 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>();
     }
 }
Beispiel #4
0
 void SetInitialReferences()
 {
     inventoryUIScript = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerToggleInventoryUI>();
     playerMaster      = GetComponent <PlayerMaster>();
 }
 void SetInitialReferences()
 {
     playerMaster = GetComponent <PlayerMaster>();
 }
Beispiel #6
0
 void SetInitialReferences()
 {
     gameManagerMaster = FindObjectOfType <GameManagerMaster>().GetComponent <GameManagerMaster>();
     playerMaster      = GetComponent <PlayerMaster>();
 }