Exemplo n.º 1
0
    WeaponAction GetAction(ControllerActionInput input)
    {
        for (int i = 0; i < actionSlots.Count; i++)
        {
            if (actionSlots[i].inputButton == input)
            {
                return(actionSlots[i]);
            }
        }

        return(null);
    }
Exemplo n.º 2
0
 protected void CheckForCombo()
 {
     if (blackboard.canAttack)
     {
         ControllerActionInput a_input = controllerActionManager.GetActionInput();
         if (a_input == ControllerActionInput.R1 && !blackboard.doOnce)
         {
             blackboard.animator.SetTrigger("LightAttack");
             blackboard.doOnce = true;
             return;
         }
         if (a_input == ControllerActionInput.R2 && !blackboard.doOnce)
         {
             blackboard.animator.SetTrigger("HeavyAttack");
             blackboard.doOnce = true;
             return;
         }
     }
 }
Exemplo n.º 3
0
    public WeaponAction GetActionSlot()
    {
        ControllerActionInput a_input = GetActionInput();

        return(GetAction(a_input));
    }