Пример #1
0
        protected override void Reset(IToolMode prevMode)
        {
            HoverSide    = null;
            SelectedSide = null;

            SelectTargets();
        }
Пример #2
0
 public override void OnSecondaryMouseClicked()
 {
     if (IsSelectedSide)
     {
         SelectedSide = null;
         SelectTargets();
     }
     else
     {
         Tool.SetDefaultMode();
     }
 }
Пример #3
0
 public override void OnPrimaryMouseClicked(Event e)
 {
     if (!IsSelectedSide)
     {
         if (IsHoverSide)
         {
             SelectedSide = HoverSide;
             SelectTargets();
         }
     }
     else if (IsHoverSide)
     {
         SetAlign();
         Tool.SetDefaultMode();
     }
 }