public override void Awake(){
		base.Awake();
		CameraControl.main.AddTarget(this.transform);

		motor = GetComponent<MoveAttacker>();
		atk = GetComponent<PlayerAttack>();
	}
示例#2
0
	bool isDead;                                                // Whether the player is dead.

	
	void Awake ()
	{
		// Setting up the references.
		playerAudio = GetComponent <AudioSource> ();
		moveAttacker = GetComponent <MoveAttacker> ();

		//playerShooting = GetComponentInChildren <PlayerShooting> ();
		
		// Set the initial health of the player.
		currentHealth = startingHealth;
	}