public static MapObject Create() { MapObject result = new MapObject(); MapObjectPool.Add(result); result.OnCreated(); return(result); }
public void Destroy() { OnDestroyed(); MapObjectPool.Remove(this); }