void Start () { _fsm = new FSMMachine(); IdleState idle = new IdleState(); SelectState selecting = new SelectState(); ViewState viewing = new ViewState(); UploadState uploading = new UploadState(); _fsm.AddState(idle); _fsm.AddState(selecting); _fsm.AddState(viewing); _fsm.AddState(uploading); _fsm.initialCurrentState = idle; }
void Start() { _fsm = new FSMMachine(); IdleState idle = new IdleState(); SelectState selecting = new SelectState(); ViewState viewing = new ViewState(); UploadState uploading = new UploadState(); _fsm.AddState(idle); _fsm.AddState(selecting); _fsm.AddState(viewing); _fsm.AddState(uploading); _fsm.initialCurrentState = idle; }