Beispiel #1
0
    /* ===================================================================================================================================
     *
     *                                  Animation updates
     *                                  Set animation states
     *=================================================================================================================================== */

    //Main update method
    private void UpdateAnim()
    {
        //confirm animator is attached
        if (anim != null)
        {
            //set anim variables
            anim.SetBool("IsMoving", move.IsMoving());
            anim.SetFloat("MoveSpeed", move.SpeedOverTile());
        }
    }