void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); gunAssemblyMaster = GetComponent<GunAssembly_Master>(); ammoText = ammoElement.GetComponent<Text>(); healthText = healthElement.GetComponent<Text>(); }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); gunAssemblyMaster = GetComponent<GunAssembly_Master>(); playerController = GetComponent<FPSController>(); firstPersonCameraFOV = FirstPersonCamera.fieldOfView; UICameraFOV = UICamera.fieldOfView; }
void SetInitialReferences() { if (GameObject.Find("_GameManager").GetComponent<GameManager_Master>() != null) { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); } playerMaster = GetComponent<Player_Master>(); gunAssemblyMaster = GetComponent<GunAssembly_Master>(); }
void SetInitialReferences() { localPlayer = transform.root.gameObject; playerMaster = localPlayer.GetComponent<Player_Master>(); projectileHandler = localPlayer.GetComponent<ProjectileHandler>(); gunAssemblyMaster = localPlayer.GetComponent<GunAssembly_Master>(); modifiers = GetComponent<ComponentModifiers>(); gunAudio = localPlayer.GetComponent<GunAudio>(); gunAudio.clipArray = shootSoundClips; }
void SetInitialReferences() { gunAssemblyMaster = GetComponent<GunAssembly_Master>(); if (GetComponent<Player_Master>() != null) playerMaster = GetComponent<Player_Master>(); currentGunComp = new List<GameObject>(); GetContainers(); PopulateComponentArrays(); gunTipList = new List<Transform>(); GetFireOrigin(muzzles[0].transform); }
void SetInitialReferences() { GameObject localPlayer = transform.root.gameObject; playerMaster = localPlayer.GetComponent<Player_Master>(); gunAssemblyMaster = localPlayer.GetComponent<GunAssembly_Master>(); }
void SetInitialReferences() { gunAssemblyMaster = transform.root.GetComponent<GunAssembly_Master>(); playerMaster = transform.root.GetComponent<Player_Master>(); crossHairAnimator = canvasDynamicCrosshair.GetComponent<Animator>(); }