StateValentin.checkTransition C# (CSharp) Méthode

checkTransition() protected méthode

protected checkTransition ( ) : StateValentin,
Résultat StateValentin,
    protected StateValentin checkTransition()
    {
        foreach(TransitionValentin transi in mytransition)
        {
            if(transi.check()!=null)
            {
                return transi.check();
            }
        }

        return null;
    }