Exemple #1
0
        private void EndAction(BaseAction action)
        {
            var modeAction = action as ModeAction;

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