void SetInitialReferences() { gunMaster = GetComponent <GunMaster>(); if (GetComponent <ItemMaster>() != null) { itemMaster = GetComponent <ItemMaster>(); } }
void SetInitialReferences() { gunMaster = GetComponent <GunMaster>(); if (GetComponent <Animator>() != null) { myAnimator = GetComponent <Animator>(); } }
void SetInitialReferences() { gunMaster = GetComponent <GunMaster>(); playerTransform = GameManagerReferences._player.transform; FindWeaponCamera(playerTransform); SetCameraOnDynamicCrosshairCanvas(); SetPlaneDistanceOnDynamicCrosshairCanvas(); }
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() { 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>(); }
void SetInitialReferences() { gunMaster = GetComponent <GunMaster>(); myTransform = transform; camTransform = myTransform.parent; }
void SetInitialReferences() { gunMaster = GetComponent <GunMaster>(); myTransform = transform; gunMaster.isGunLoaded = true; }