예제 #1
0
 /// <summary>
 /// must be hooked outside since Diskcontroller is not a monobehavior
 /// </summary>
 public void Start()
 {
     mMode = new Util.Mode <DiskController, State> (this);
     mMode.Set(State.Idle);
     mHistoryEnum = mHistory.GetEnumerator();
 }
예제 #2
0
    Util.Mode <SMmonoT, State> mMode;   //this state machine has a limitation that callback fucntion limited to void()

    void Start()
    {
        mMode = new Util.Mode <SMmonoT, State>(this);
        mMode.Set(State.MoveUp);
    }