Пример #1
0
 public void ActionPointOrientationRemoved(NamedOrientation orientation)
 {
     try {
         ActionPoint actionPoint = GetActionPointWithOrientation(orientation.Id);
         actionPoint.RemoveOrientation(orientation);
         OnActionPointUpdated?.Invoke(this, new ActionPointUpdatedEventArgs(actionPoint));
         OnProjectChanged?.Invoke(this, EventArgs.Empty);
     } catch (KeyNotFoundException ex) {
         Debug.LogError(ex);
         Notifications.Instance.ShowNotification("Failed to remove action point orientation", ex.Message);
         return;
     }
 }