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); } }
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); } }