Example #1
0
File: Animal.cs Project: 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;
    }