private void EndAction(BaseAction action) { var modeAction = action as ModeAction; if (modeAction != null && modeAction.IsActivate) { DeactivateMode(modeAction.ModeName); } else { action.End(); } }
private void EndAction(BaseAction action) { var modeAction = action as ModeAction; if (modeAction != null && modeAction.IsActivate) DeactivateMode(modeAction.ModeName); else action.End(); }