コード例 #1
0
ファイル: PhysicsLogic.cs プロジェクト: Anttifer/Jypeli
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     if (Removed != null)
     {
         Removed(this, e);
     }
 }
コード例 #2
0
ファイル: Joint.cs プロジェクト: Anttifer/Jypeli
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     foreach (Body b in Bodies)
     {
         b.IsFrozen = false;
     }
     if (Removed != null)
     {
         Removed(this, e);
     }
 }
コード例 #3
0
 private void DestroyObsoleteWindows(object container, RemovedEventArgs args)
 {
     foreach (var id in args.RemovedIds)
     {
         var v = _pinnedViewers.FirstOrDefault(w => w.ObservationContainer == container.GetHashCode() &&
                                               w.ObservationId == id);
         if (v != null)
         {
             MainThreadInvoker.Enqueue(() =>
             {
                 Destroy(v.gameObject);
                 _pinnedViewers.Remove(v);
             });
         }
     }
 }
コード例 #4
0
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     if (Removed != null) { Removed(this, e); }
 }
コード例 #5
0
ファイル: Joint.cs プロジェクト: bsvercl/physics2d
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     foreach (Body b in Bodies)
     {
         b.IsFrozen = false;
     }
     if (Removed != null) { Removed(this, e); }
 }
コード例 #6
0
 void OnBodyRemoved(object sender, RemovedEventArgs e)
 {
     this.Lifetime.IsExpired = true;
 }
コード例 #7
0
 void entity_Removed(object sender, RemovedEventArgs e)
 {
     this.entity.PositionChanged -= entity_NewState;
     this.entity.Removed         -= entity_Removed;
     this.removed = true;
 }
コード例 #8
0
 public abstract void OnItemsRemoved(object sender, RemovedEventArgs e);
コード例 #9
0
ファイル: StatusPanel.cs プロジェクト: hapm/IrcShark
 void Connections_Removed(object sender, RemovedEventArgs<IrcConnection> args)
 {
     foreach (ConnectionStateListViewItem item in ConnectionListView.Items)
     {
         if (item.Connection == args.Item)
         {
             ConnectionListView.Items.Remove(item);
             break;
         }
     }
 }