// ------------------------------------------------------------------ // Desc: // ------------------------------------------------------------------ public virtual void Init() { if (stateMachine == null) { stateMachine = new fsm.Machine(); } }
// ------------------------------------------------------------------ // Desc: // ------------------------------------------------------------------ public void Debug( Object _obj ) { GameObject go = _obj as GameObject; if ( go == null ) { return; } // fsm.Machine machine = GetStateMachine (go); // check if repaint if ( curEdit != machine ) { curEdit = machine; curGO = go; Init(); Repaint (); return; } }
// ------------------------------------------------------------------ // Desc: // ------------------------------------------------------------------ public void Debug(Object _obj, int _idx = 0) { GameObject go = _obj as GameObject; if (go == null) { return; } // fsm.Machine machine = GetStateMachine(go, _idx); // check if repaint if (curEdit != machine) { curEdit = machine; curGO = go; Init(); Repaint(); return; } }
// ------------------------------------------------------------------ // Desc: // ------------------------------------------------------------------ protected void Awake () { stateMachine = new fsm.Machine(); InitStateMachine (); }
protected void Awake() { stateMachine = new fsm.Machine(); InitStateMachine(); }