Пример #1
0
 void Awake()
 {
     // Setting up the references.
     anim = GetComponent <Animator> ();
     playerAudio = GetComponent <AudioSource> ();
     //hitParticles = GetComponentInChildren <ParticleSystem> ();
     thirdPersonCharacter = GetComponentInChildren <ThirdPersonCharacter> ();
     playerLevel = GetComponent <PlayerLevel> ();
     playerPunch = GetComponentInChildren <PlayerPunch> ();
     playerKick  = GetComponentInChildren <PlayerKick> ();
     // Set the initial health of the player.
     currentHealth = startingHealth;
 }
Пример #2
0
        // True when the player gets damaged
        void Awake()
        {
            // Setting up the references.
            //animator = GetComponent <Animator> ();

            playerAudio = GetComponent <AudioSource> ();
            playerHealth = GetComponent <PlayerHealth> ();
            //playerKick = GetComponent <PlayerMovement> ();
            //thirdPersonCharacter = GetComponent <ThirdPersonCharacter> ();
            playerPunch = GetComponentInChildren<PlayerPunch> ();
            playerKick  = GetComponentInChildren <PlayerKick> ();
            //levelUpParticles = GetComponentInChildren <ParticleSystem> ();
            // Set the initial health of the player.
            currentLevel = startingLevel;
            expSlider.minValue = startingExp;
            currentExp = expSlider.minValue;
        }