예제 #1
0
        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);
        }
예제 #2
0
 internal void AddEntity(GameObject obj, GameEntityStorage storage)
 {
     storage.AddEntity(obj);
 }