void DoAction(stateNow state) { switch (state) { case stateNow.run: ///Move here break; case stateNow.move: break; case stateNow.attack: break; case stateNow.none: break; default: break; } }
void ChangeState() { switch (enumState) { case stateNow.run: if (heal > 0) { enumState = stateNow.move; } break; case stateNow.move: break; case stateNow.attack: break; case stateNow.none: break; default: break; } }