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