public void ReductionState() { if (nextState != null && nextState.nextState == null) { if (nextState.TmpChangeStateEvent != null) { nextState.TmpReductionStateEvent.Invoke(nextState.NowValue); } nextState = null; } else if (nextState != null) { nextState.ReductionState(); } }
public void ExitState() { num -= 1; state.ReductionState(); }