Ejemplo n.º 1
0
Archivo: Animal.cs Proyecto: okoz/ld32
    public void Slow(float fraction)
    {
        // Force a new path if the sheep was angry before.
        if (demeanor == Demeanor.Angry)
        {
            stateMachine.SetState("Idle");
        }

        demeanor     = demeanor.Decrement();
        slowFraction = fraction;
    }