private static DrivenGameObjectPool getOrCreatePool( GameObjectComponentDescription forComponents) { DrivenGameObjectPool pool; if (!_pools.TryGetValue(forComponents, out pool)) { _pools[forComponents] = pool = new DrivenGameObjectPool(); pool._components = forComponents; } return(pool); }
public static DrivenGameObject Spawn(GameObjectComponentDescription withComponents) { return(getOrCreatePool(withComponents).Spawn()); }
public ComponentTypeEnumerator(GameObjectComponentDescription compDesc) { this.compDesc = compDesc; idx = -1; }