public void doMove(Vector3 position) { FSMEvent evt = new FSMEvent (); evt.obj = _view._play.inCamera (position + this._dirver.position); evt.msg = "move"; this.fsm_.postEvent (evt); }
public override string postEvent(FSMEvent evt){ string ret = ""; if(actionMap_.ContainsKey(evt.msg)){ ret = actionMap_[evt.msg](evt); } return ret; }
public override string postEvent(FSMEvent evt) { string ret = ""; if (actionMap_.ContainsKey(evt.msg)) { ret = actionMap_[evt.msg](evt); } return(ret); }
public void post(string msg) { Debug.Log("msg is..." + msg); //FSMEvent evt = new FSMEvent(msg); FSMEvent evt = new FSMEvent(); evt.msg = msg; this.postEvent(evt); }
public void postEvent(FSMEvent evt) { for(int i =0; i< this.currState_.Count; ++i){ State state = this.currState_[i] as State; string stateName = state.postEvent(evt) as string; if(stateName != ""){ this.translation(stateName); break; } } }
public void postEvent(FSMEvent evt) { for (int i = 0; i < this.currState_.Count; ++i) { State state = this.currState_[i] as State; string stateName = state.postEvent(evt) as string; if (stateName != "") { this.translation(stateName); break; } } }
private void postEvent(FSMEvent evt) { for (int i = 0; i < this.currStates_.Count; i++) { StateBase state = this.currStates_[i]; if (debug_) { Debug.Log("msg_post" + evt.msg + "state_name" + state.name); } string stateName = state.postEvent(evt) as string; if (stateName != "") { this.translation(stateName); break; } } }
public void postEvent(FSMEvent evt){ string outs = ""; for(int i = 0; i < currState_.Count; ++i){ outs+= ":" + currState_[i].name; } // Debug.LogWarning (outs); for(int i =0; i< this.currState_.Count; ++i){ State state = this.currState_[i] as State; if (debug_) { Debug.Log ("msg_post" + evt.msg+ state.name); } string stateName = state.postEvent(evt) as string; if(stateName != ""){ this.translation(stateName); break; } } }
public void post(string msg) { FSMEvent evt = new FSMEvent(); evt.msg = msg; this.postEvent(evt); }
public virtual string postEvent(FSMEvent evt) { return(""); }
public void postEvent(FSMEvent evt) { string outs = ""; for(int i = 0; i < currState_.Count; ++i){ outs+= ":" + currState_[i].name; } Debug.LogWarning (outs); for(int i =0; i< this.currState_.Count; ++i){ State state = this.currState_[i] as State; if (debug_) { Debug.Log ("msg_post" + evt.msg+ state.name); } string stateName = state.postEvent(evt) as string; if(stateName != ""){ this.translation(stateName); break; } } }
public void post(FSMEvent evt) { postEvent(evt); }
public void post(string msg, object obj) { FSMEvent evt = new FSMEvent(msg, obj); this.postEvent(evt); }
public void post(string msg){ FSMEvent evt = new FSMEvent(); evt.msg = msg; this.postEvent(evt); }
public void post(FSMEvent evt) { this.postEvent(evt); }
public virtual string postEvent(FSMEvent evt) { return ""; }
public override string postEvent(FSMEvent evt) { Debug.Log("###" + evt.msg); return ""; }