StateWill.checkTransition C# (CSharp) Method

checkTransition() protected method

protected checkTransition ( ) : StateWill,
return StateWill,
    protected virtual StateWill checkTransition()
    {
        StateWill next = null;
        foreach (TransitionWill trans in transitions)
        {
            next = trans.check();
            if (next != null)
            {
                return next;
            }
        }
        return null;
    }