Ejemplo n.º 1
0
 // Punching cooldown
 void UpdateAttack()
 {
     if (Input.GetButton("Fire1" + m_PlayerInputString) && Time.time > m_LastPunchTime + PUNCH_COOLDOWN)
     {
         m_LastPunchTime = Time.time;
         m_Animator.SetTrigger("Punch");
         m_PlayerAttack.ActivateAttack();
     }
 }