Пример #1
0
 public void ChracterAtttackScript()
 {
     // Debug.Log(Input.GetAxis("Fire1"));
     if (_ControlMeta._ControlMethod.joystick)
     {
         //When Joystick X input Came takes it move the character
         if (Input.GetAxis("Fire1_Pad") > 0f)
         {
             // _CharacterAnimationControl.AttackMeleeStart(GetCharacterAttackSpeed());
             _CharacterAnimationControl.AnimationAttackStart(GetCharacterAttackSpeed(), IC.GetEquippedAttackItem());
         }
         else
         {
             // _CharacterAnimationControl.AttackMeleeFinish();
             _CharacterAnimationControl.AnimationAttackFinish(GetCharacterAttackSpeed(), IC.GetEquippedAttackItem());
         }
     }
     else
     {
         //When LeftMouseButton input Came, takes it move the character
         if (Input.GetAxis("Fire1") > 0f)
         {
             //_CharacterAnimationControl.AttackMeleeStart(GetCharacterAttackSpeed());
             _CharacterAnimationControl.AnimationAttackStart(GetCharacterAttackSpeed(), IC.GetEquippedAttackItem());
         }
         else
         {
             //_CharacterAnimationControl.AttackMeleeFinish();
             _CharacterAnimationControl.AnimationAttackFinish(GetCharacterAttackSpeed(), IC.GetEquippedAttackItem());
         }
     }
 }