/// <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(); }
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); }