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