public bool RemoveObject(GameObject @object)
 {
     GameObjects.Remove(@object.HashCode);
     CurrentTickRemovedObjects.Add(@object);
     OnObjectRemoved?.Invoke(@object);
     return(true);
 }
Esempio n. 2
0
 public void Remove(string name)
 {
     foreach (GameObject o in _Objects)
     {
         if (o._Name == name)
         {
             OnObjectRemoved?.Invoke(this, o);
             _Objects.Remove(o);
         }
     }
 }