Beispiel #1
0
    //

    /*If the player is in this state, they will always do whatever is in state update.
     * Which includes accepting new input and */
    public void StateUpdate()
    {
        pi.playerScript.Idle();
        mi = pi.GetMovementInput();
        ri = pi.GetRunInput();
        ji = pi.GetJumpInput();
        spellInputTable = pi.GetSpellInputTable();
        cancelSpell     = pi.GetCancelInput();
    }
 public void StateUpdate()
 {
     mi = pi.GetMovementInput();
     ri = pi.GetRunInput();
     spellInputTable = pi.GetSpellInputTable();
     ji = pi.GetJumpInput();
     pi.playerScript.GroundMovement(mi.x, mi.y, mi.magnitude);
     pi.playerScript.Run(ri.magnitude);
     cancelSpell = pi.GetCancelInput();
 }