예제 #1
0
 public override void OnClick(Click type)
 {
     if (GameManager.Instance.GetEditorState() != GameManager.EditorStateEnum.Normal)
     {
         return;
     }
     if (type == Click.MOUSE_RIGHT_BUTTON || (type == Click.TOUCH && !(ControlBoxManager.Instance.UseGizmoMove || ControlBoxManager.Instance.UseGizmoRotate)))
     {
         ActionPoint.ShowAimingMenu(OrientationId);
     }
 }
예제 #2
0
 public override void OnClick(Click type)
 {
     if (GameManager.Instance.GetEditorState() != GameManager.EditorStateEnum.Normal)
     {
         return;
     }
     if (ActionPoint.Locked)
     {
         Notifications.Instance.ShowNotification("Failed to open orientation detail", "AP is locked");
         return;
     }
     if (type == Click.MOUSE_RIGHT_BUTTON || (type == Click.TOUCH && !(ControlBoxManager.Instance.UseGizmoMove || ControlBoxManager.Instance.UseGizmoRotate)))
     {
         ActionPoint.ShowAimingMenu(OrientationId);
         HighlightOrientation(true);
     }
 }