Пример #1
0
    private void Start()
    {
        var       mousestatelit = new QFSMLite();
        QFSMState ido           = new QFSMState(1);
        QFSMState leftdown      = new QFSMState(2);
        QFSMState rightdown     = new QFSMState(3);


        mousestatelit.AddState(ido.Name.ToString());
        mousestatelit.AddState(leftdown.Name.ToString());
        mousestatelit.AddState(rightdown.Name.ToString());
        mousestatelit.Start(ido.Name.ToString());
    }
Пример #2
0
 /// <summary>
 /// Adds the state.
 /// </summary>
 /// <param name="name">Name.</param>
 public void AddState(string name)
 {
     mStateDict[name] = new QFSMState(name);
 }