internal void AddEntity(GameObject obj) { Type t = obj.GetType(); GameEntityStorage storage = _entities.FirstOrDefault(s => s.EntityType == obj.GetType()); if (storage == null) { throw new InvalidOperationException(); } storage.AddEntity(obj); }
internal void AddEntity(GameObject obj, GameEntityStorage storage) { storage.AddEntity(obj); }