コード例 #1
0
 private void objectManager_GameObjectsRemoved(object sender, GameObjectCopyGroupEventArgs e)
 {
     foreach (GameObjectCopy obj in e.Objects)
     {
         this.RemoveFromManagers(obj);
         obj.Scene = null;
     }
 }
コード例 #2
0
 private void objectManager_GameObjectsAdded(object sender, GameObjectCopyGroupEventArgs e)
 {
     foreach (GameObjectCopy obj in e.Objects)
     {
         this.AddToManagers(obj);
         obj.Scene = this;
     }
 }