コード例 #1
0
 private void Update()
 {
     if (node != null && solver != null && !solver.maneuverNodes.Contains(node))
     {
         // User deleted the node! Remove it from everything.
         PlanningNodesManager.Instance.nodes.Remove(editingNode);
         editingNode = null;
         node        = null;
         // Tell listeners to return to non-editing state
         DeleteMe?.Invoke();
     }
 }
コード例 #2
0
 private void ContextMenu_Delete(object sender, RoutedEventArgs e)
 {
     DeleteMe?.Invoke(this, new EventArgs());
 }