Exemplo n.º 1
0
 public void RemoveWorldObject(IAGameObject gameObject)
 {
     //Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, new Action(() => RemoveFromRenderCanvas(gameObject.GetElements())));
     RemoveFromRenderCanvas(gameObject.GetElements());
     _gameObjects.Remove(gameObject);
     _gameObjects.Capacity = _gameObjects.Count + 4;
 }
Exemplo n.º 2
0
 public void AddWorldObject(IAGameObject gameObject)
 {
     _gameObjects.Add(gameObject);
     AddComponents(gameObject.GetElements(), (gameObject as GameObject).ZIndex);
 }