Ejemplo n.º 1
0
 void SetInitialReferences()
 {
     generalflyPos();
     characterController = GetComponent <CharacterController>();
     player_Master       = GetComponent <Player_Master>();
     stagnant_Time       = 0.3f;
 }
Ejemplo n.º 2
0
	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;
		}
	}
Ejemplo n.º 3
0
 void SetInitialReferences()
 {
     if (GameManager_References._player != null)
     {
         playerMaster = GameManager_References._player.GetComponent <Player_Master>();
     }
 }
Ejemplo n.º 4
0
 void SetInitialReferences()
 {
     player_Master       = GetComponent <Player_Master>();
     characterController = GetComponent <CharacterController>();
     cameraTransform     = Camera.main.transform;
     moveDirection       = transform.TransformDirection(Vector3.forward);
 }
Ejemplo n.º 5
0
 void SetInitRef()
 {
     if (MCP_References._player != null)
     {
         player_Master = MCP_References._player.GetComponent <Player_Master>();
     }
 }
Ejemplo n.º 6
0
	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>();
		}
	}
Ejemplo n.º 7
0
	void SetInitialReferences()
	{
		playerMaster = GetComponent<Player_Master>();
		gunAssemblyMaster = GetComponent<GunAssembly_Master>();

		ammoText = ammoElement.GetComponent<Text>();
		healthText = healthElement.GetComponent<Text>();
	}
Ejemplo n.º 8
0
	void SetInitialReferences()
	{
		playerMaster = GetComponent<Player_Master>();
		if (GameObject.Find("_GameManager").GetComponent<GameManager_Master>() != null)
		{
			gameManagerMaster = GameObject.Find("_GameManager").GetComponent<GameManager_Master>();
		}
	}
Ejemplo n.º 9
0
	void SetInitialReferences()
	{
		playerMaster = GetComponent<Player_Master>();
		gunAssemblyMaster = GetComponent<GunAssembly_Master>();
		playerController = GetComponent<FPSController>();

		firstPersonCameraFOV = FirstPersonCamera.fieldOfView;
		UICameraFOV = UICamera.fieldOfView;
	}
Ejemplo n.º 10
0
	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>();
	}
Ejemplo n.º 11
0
	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;
	}
Ejemplo n.º 12
0
	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>();

	}
Ejemplo n.º 13
0
	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>();
	}
Ejemplo n.º 14
0
        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>();
            }
        }
Ejemplo n.º 15
0
	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);
	}
Ejemplo n.º 16
0
    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>();
        }
    }
Ejemplo n.º 17
0
	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>());
			}
		}		
	}
Ejemplo n.º 18
0
 void SetInitialReferences()
 {
     playerattackDamage  = GetComponent <PlayerAttackDamage>();
     player_Master       = GetComponent <Player_Master>();
     judgement_StatusNum = 0;
 }
Ejemplo n.º 19
0
 void SetInitialReferences()
 {
     player_Master    = GetComponent <Player_Master>();
     judgement_Status = 0;
 }
Ejemplo n.º 20
0
 private void InitializeReferences()
 {
     playerMaster = GetComponent <Player_Master> ();
     playerAmmo   = GetComponent <Player_Ammunition> ();
     ammoText     = ammoPanel.transform.GetChild(0).GetComponent <Text> ();
 }
Ejemplo n.º 21
0
 void SetInitRef()
 {
     player_Master = GetComponent <Player_Master>();
 }
Ejemplo n.º 22
0
 private void InitializeReferences()
 {
     playerMaster = GetComponent <Player_Master> ();
 }
Ejemplo n.º 23
0
 private void InitializeReferences()
 {
     playerMaster = GameObject.Find("Spacecraft").GetComponent <Player_Master> ();
 }
Ejemplo n.º 24
0
 void Awake()
 {
     Instnace = this;
 }
Ejemplo n.º 25
0
 void SetInitialReferences()
 {
     interactableMaster = GetComponent <Interactable_Master>();
     playerMaster       = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Master>();
 }
Ejemplo n.º 26
0
	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>();
	}
Ejemplo n.º 27
0
	void SetInitialReferences()
	{
		playerMaster = GetComponent<Player_Master>();
	}
Ejemplo n.º 28
0
 private void InitializeReferences()
 {
     InitializeLevel();
     playerMaster = GameObject.Find("Spacecraft").GetComponent <Player_Master>();
     gmMaster     = GetComponent <GameManager_Master> ();
 }
Ejemplo n.º 29
0
	void SetInitialReferences()
	{
		GameObject localPlayer = transform.root.gameObject;
		playerMaster = localPlayer.GetComponent<Player_Master>();
		gunAssemblyMaster = localPlayer.GetComponent<GunAssembly_Master>();
	}
Ejemplo n.º 30
0
 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>();
    }
Ejemplo n.º 32
0
 private void InitializeReferences()
 {
     playerMaster = this.transform.GetChild(0).GetComponent <Player_Master> ();
 }
Ejemplo n.º 33
0
 void SetInitialReferences()
 {
     player_Master       = GetComponent <Player_Master>();
     player_DetectStatus = GetComponent <Player_DetectStatus>();
     HandObject_Col      = player_Master.Healer_HandObject.GetComponent <Collider>();
 }
Ejemplo n.º 34
0
 void SetInitialReferences()
 {
     inventoryUIScript = GameObject.Find("GameManager").GetComponent <GameManager_ToggleInventoryUI>();
     playerMaster      = GetComponent <Player_Master>();
     hudManager        = GetComponent <HUDManager>();
 }
 void SetOnIntialRefrance()
 {
     playerMaster = GetComponent <Player_Master>();
 }
Ejemplo n.º 36
0
 void SetInitialReferences()
 {
     lockeShootMaster = GetComponent <LockeShootMaster>();
     player_Master    = GetComponent <Player_Master>();
 }
Ejemplo n.º 37
0
 void SetInitialReferences()
 {
     gameManagerMaster = GetComponent <GameManager_Master>();
     playerMaster      = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Master>();
 }
Ejemplo n.º 38
0
 void SetInitRef()
 {
     mcp_Master    = GameObject.Find("MasterControlProgram").GetComponent <MCP_Master>();
     player_Master = GetComponent <Player_Master>();
 }
 void SetInitialReferences()
 {
     playerMaster = GetComponent <Player_Master>();
 }
Ejemplo n.º 40
0
 void SetInitRef()
 {
     inventoryUIScript = GameObject.Find("MasterControlProgram").GetComponent <MCP_ToggleInventoryUI>();
     player_Master     = GetComponent <Player_Master>();
 }
Ejemplo n.º 41
0
 private void InitializeReferences()
 {
     playerMaster        = GetComponent <Player_Master> ();
     myRig               = GetComponent <Rigidbody> ();
     movementVelocitySqr = movementVelocity * movementVelocitySqr;
 }
Ejemplo n.º 42
0
	void SetInitialReferences()
	{
		//should probably use this method more often in the future
		playerMaster = GetComponent<Player_Master>();
	}