protected void _init(uint id, SimpleFsm machine, State owner) { mName = ""; mStateID = id; mMachine = machine; mParent = null; mChild = null; mOwner = owner; mFuncEnter = null; mFuncUpdate = null; mFuncExit = null; mTransition = new Dictionary <uint, State>(); mkStateEventArgs = new StateEventArgs(this); machine.RegisterState(this); }
public State(uint id, SimpleFsm machine, State owner) { _init(id, machine, owner); }
public State(uint id, SimpleFsm machine) { _init(id, machine, null); }