Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        //Each frame the current state is executed and if a state transition is triggered
        //in the execution of the state the state is changed
        currentState     = currentState.DoState();
        currentStateName = currentState.ToString();

        animateWalking();
    }