Exemplo n.º 1
0
 private void MoveToNonCollidable(IObject gameObject)
 {
     NonCollidableObjects.Add(gameObject);
     if (gameObject is IDynamic)
     {
         DynamicObjects.Remove((IDynamic)gameObject);
     }
     if (gameObject is IStatic)
     {
         StaticObjects.Remove((IStatic)gameObject);
     }
 }
Exemplo n.º 2
0
 private void DestroyFromManager(IStatic gameObject)
 {
     StaticObjects.Remove(gameObject);
     gameObject.Destroy();
 }