private void objectManager_GameObjectsRemoved(object sender, GameObjectCopyGroupEventArgs e) { foreach (GameObjectCopy obj in e.Objects) { this.RemoveFromManagers(obj); obj.Scene = null; } }
private void objectManager_GameObjectsAdded(object sender, GameObjectCopyGroupEventArgs e) { foreach (GameObjectCopy obj in e.Objects) { this.AddToManagers(obj); obj.Scene = this; } }