コード例 #1
0
        private static DrivenGameObjectPool getOrCreatePool(
            GameObjectComponentDescription forComponents)
        {
            DrivenGameObjectPool pool;

            if (!_pools.TryGetValue(forComponents, out pool))
            {
                _pools[forComponents] = pool = new DrivenGameObjectPool();
                pool._components      = forComponents;
            }
            return(pool);
        }
コード例 #2
0
 public static DrivenGameObject Spawn(GameObjectComponentDescription withComponents)
 {
     return(getOrCreatePool(withComponents).Spawn());
 }
コード例 #3
0
ファイル: GameObjectDriver.cs プロジェクト: ccdump/Paint-1
 public ComponentTypeEnumerator(GameObjectComponentDescription compDesc)
 {
     this.compDesc = compDesc;
     idx           = -1;
 }