Exemple #1
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <GunMaster>();
     if (GetComponent <ItemMaster>() != null)
     {
         itemMaster = GetComponent <ItemMaster>();
     }
 }
Exemple #2
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <GunMaster>();
     if (GetComponent <Animator>() != null)
     {
         myAnimator = GetComponent <Animator>();
     }
 }
Exemple #3
0
 void SetInitialReferences()
 {
     gunMaster       = GetComponent <GunMaster>();
     playerTransform = GameManagerReferences._player.transform;
     FindWeaponCamera(playerTransform);
     SetCameraOnDynamicCrosshairCanvas();
     SetPlaneDistanceOnDynamicCrosshairCanvas();
 }
Exemple #4
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>();
     }
 }
Exemple #5
0
 void SetInitialReferences()
 {
     gunMaster = GetComponent <GunMaster>();
     if (transform.root.GetComponent <NPCMaster>() != null)
     {
         nPCMaster = transform.root.GetComponent <NPCMaster>();
     }
     if (transform.root.GetComponent <NPCStatePattern>() != null)
     {
         nPCStatePattern = transform.root.GetComponent <NPCStatePattern>();
     }
     myTransform = transform;
 }
 void SetInitialReferences()
 {
     gunMaster = GetComponent <GunMaster>();
 }
Exemple #7
0
 void SetInitialReferences()
 {
     gunMaster    = GetComponent <GunMaster>();
     myTransform  = transform;
     camTransform = myTransform.parent;
 }
Exemple #8
0
 void SetInitialReferences()
 {
     gunMaster             = GetComponent <GunMaster>();
     myTransform           = transform;
     gunMaster.isGunLoaded = true;
 }