void SetInitialReferences() { generalflyPos(); characterController = GetComponent <CharacterController>(); player_Master = GetComponent <Player_Master>(); stagnant_Time = 0.3f; }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); allLocalScoreText = localScoreText.GetComponentsInChildren<Text>(); alltopRemoteScoreText = topRemoteScoreText.GetComponentsInChildren<Text>(); if (GameObject.Find("_GameManager").GetComponent<GameManager_Score>() != null) { gameMasterScore = GameObject.Find("_GameManager").GetComponent<GameManager_Score>(); } else { Debug.LogWarning("no gameManager_score found!"); enabled = false; } if (GameObject.Find("_GameManager").GetComponent<GameManager_Master>() != null) { gameMasterMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); } else { Debug.LogWarning("no gameManager_Master found!"); enabled = false; } }
void SetInitialReferences() { if (GameManager_References._player != null) { playerMaster = GameManager_References._player.GetComponent <Player_Master>(); } }
void SetInitialReferences() { player_Master = GetComponent <Player_Master>(); characterController = GetComponent <CharacterController>(); cameraTransform = Camera.main.transform; moveDirection = transform.TransformDirection(Vector3.forward); }
void SetInitRef() { if (MCP_References._player != null) { player_Master = MCP_References._player.GetComponent <Player_Master>(); } }
void SetInitialReferences() { if (GameObject.Find("SceneCamera") != null) { Debug.Log("found camera"); sceneCameraObj = GameObject.Find("SceneCamera"); } if (GameObject.Find("_GameManager") != null) { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); gameManagerPlayers = GameObject.Find("_GameManager").GetComponent<GameManager_Players>(); gameManagerMaster.isAlive = true; gameManagerMaster.CallEventCursorLockUpdate(); } else { Debug.LogError("No GameManager found!"); } if (GetComponent<ProjectileHandler>() != null) { projectileHandler = GetComponent<ProjectileHandler>(); } if (GetComponent<Player_Master>() != null) { playerMaster = GetComponent<Player_Master>(); } }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); gunAssemblyMaster = GetComponent<GunAssembly_Master>(); ammoText = ammoElement.GetComponent<Text>(); healthText = healthElement.GetComponent<Text>(); }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); if (GameObject.Find("_GameManager").GetComponent<GameManager_Master>() != null) { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); } }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); gunAssemblyMaster = GetComponent<GunAssembly_Master>(); playerController = GetComponent<FPSController>(); firstPersonCameraFOV = FirstPersonCamera.fieldOfView; UICameraFOV = UICamera.fieldOfView; }
void SetInitialReferences() { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); playerMaster = GetComponent<Player_Master>(); playerController = GetComponent<FPSController>(); playerRB = GetComponent<Rigidbody>(); playerCollider = GetComponent<CapsuleCollider>(); spawnPoints = FindObjectsOfType<NetworkStartPosition>(); }
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() { if (GameObject.Find("_GameManager").GetComponent<GameManager_Master>() != null) { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); } playerMaster = GetComponent<Player_Master>(); playerController = GetComponent<FPSController>(); playerAnimator = GetComponent<Animator>(); playerRigidbody = GetComponent<Rigidbody>(); }
void SetInitialReferences() { if (GameObject.Find("_GameManager") != null) { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); gameManagerPlayers = GameObject.Find("_GameManager").GetComponent<GameManager_Players>(); } else { Debug.LogError("No GameManager found!"); } playerMaster = GetComponent<Player_Master>(); }
void SetInitialReferences() { gunMaster = GetComponentInParent <Gun_Master>(); gunAnimation = GetComponentInParent <Gun_Animation>(); gunSounds = GetComponentInParent <Gun_Sounds>(); gunAim = GetComponent <Gun_Aim>(); if (GameManager_References._player != null) { playerMaster = GameManager_References._player.GetComponent <Player_Master>(); playerAmmoBox = GameManager_References._player.GetComponent <Player_AmmoBox>(); } }
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 SetInitRef() { gun_Master = GetComponent <Gun_Master>(); if (GetComponent <Animator>() != null) { _animator = GetComponent <Animator>(); } if (MCP_References._player != null) { player_Master = MCP_References._player.GetComponent <Player_Master>(); ammoBox = MCP_References._player.GetComponent <Player_AmmoBox>(); } }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); analogGlitches = new List<Kino.AnalogGlitch>(); digitalGlitches = new List<Kino.DigitalGlitch>(); foreach (Camera cam in cams) { if (cam.GetComponent<Kino.AnalogGlitch>() != null) { analogGlitches.Add(cam.GetComponent<Kino.AnalogGlitch>()); } if (cam.GetComponent<Kino.DigitalGlitch>() != null) { digitalGlitches.Add(cam.GetComponent<Kino.DigitalGlitch>()); } } }
void SetInitialReferences() { playerattackDamage = GetComponent <PlayerAttackDamage>(); player_Master = GetComponent <Player_Master>(); judgement_StatusNum = 0; }
void SetInitialReferences() { player_Master = GetComponent <Player_Master>(); judgement_Status = 0; }
private void InitializeReferences() { playerMaster = GetComponent <Player_Master> (); playerAmmo = GetComponent <Player_Ammunition> (); ammoText = ammoPanel.transform.GetChild(0).GetComponent <Text> (); }
void SetInitRef() { player_Master = GetComponent <Player_Master>(); }
private void InitializeReferences() { playerMaster = GetComponent <Player_Master> (); }
private void InitializeReferences() { playerMaster = GameObject.Find("Spacecraft").GetComponent <Player_Master> (); }
void Awake() { Instnace = this; }
void SetInitialReferences() { interactableMaster = GetComponent <Interactable_Master>(); playerMaster = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Master>(); }
void SetInitialReferences() { if (GameObject.Find("_GameManager").GetComponent<GameManager_Master>() != null) { gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>(); } if (GetComponent<PlayerEffects>() != null) { effects = GetComponent<PlayerEffects>(); } if (GetComponent<Player_Master>() != null) { playerMaster = GetComponent<Player_Master>(); } playerRigidBody = GetComponent<Rigidbody>(); playerCapsule = GetComponent<CapsuleCollider>(); playerAnimator = GetComponent<Animator>(); playerAudio = GetComponent<PlayerAudio>(); }
void SetInitialReferences() { playerMaster = GetComponent<Player_Master>(); }
private void InitializeReferences() { InitializeLevel(); playerMaster = GameObject.Find("Spacecraft").GetComponent <Player_Master>(); gmMaster = GetComponent <GameManager_Master> (); }
void SetInitialReferences() { GameObject localPlayer = transform.root.gameObject; playerMaster = localPlayer.GetComponent<Player_Master>(); gunAssemblyMaster = localPlayer.GetComponent<GunAssembly_Master>(); }
private void InitializeReferences() { playerMaster = GetComponent <Player_Master> (); maxhealth = GameObject.FindGameObjectWithTag("GM").GetComponent <GameManager_UIMaster> ().startingHealth; health = maxhealth; }
void SetInitialReferences() { gunAssemblyMaster = transform.root.GetComponent<GunAssembly_Master>(); playerMaster = transform.root.GetComponent<Player_Master>(); crossHairAnimator = canvasDynamicCrosshair.GetComponent<Animator>(); }
private void InitializeReferences() { playerMaster = this.transform.GetChild(0).GetComponent <Player_Master> (); }
void SetInitialReferences() { player_Master = GetComponent <Player_Master>(); player_DetectStatus = GetComponent <Player_DetectStatus>(); HandObject_Col = player_Master.Healer_HandObject.GetComponent <Collider>(); }
void SetInitialReferences() { inventoryUIScript = GameObject.Find("GameManager").GetComponent <GameManager_ToggleInventoryUI>(); playerMaster = GetComponent <Player_Master>(); hudManager = GetComponent <HUDManager>(); }
void SetOnIntialRefrance() { playerMaster = GetComponent <Player_Master>(); }
void SetInitialReferences() { lockeShootMaster = GetComponent <LockeShootMaster>(); player_Master = GetComponent <Player_Master>(); }
void SetInitialReferences() { gameManagerMaster = GetComponent <GameManager_Master>(); playerMaster = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Master>(); }
void SetInitRef() { mcp_Master = GameObject.Find("MasterControlProgram").GetComponent <MCP_Master>(); player_Master = GetComponent <Player_Master>(); }
void SetInitialReferences() { playerMaster = GetComponent <Player_Master>(); }
void SetInitRef() { inventoryUIScript = GameObject.Find("MasterControlProgram").GetComponent <MCP_ToggleInventoryUI>(); player_Master = GetComponent <Player_Master>(); }
private void InitializeReferences() { playerMaster = GetComponent <Player_Master> (); myRig = GetComponent <Rigidbody> (); movementVelocitySqr = movementVelocity * movementVelocitySqr; }
void SetInitialReferences() { //should probably use this method more often in the future playerMaster = GetComponent<Player_Master>(); }