示例#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>();
 }