当前位置: 首页>>代码示例>>C#>>正文


C# Pool.GetGroup方法代码示例

本文整理汇总了C#中Entitas.Pool.GetGroup方法的典型用法代码示例。如果您正苦于以下问题:C# Pool.GetGroup方法的具体用法?C# Pool.GetGroup怎么用?C# Pool.GetGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Entitas.Pool的用法示例。


在下文中一共展示了Pool.GetGroup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetPool

 public void SetPool(Pool pool)
 {
     Random.seed = 42;
     _pool = pool;
     _group = pool.GetGroup(Matcher.BonusModel);
     _players = pool.GetGroup(Matcher.Player);
 }
开发者ID:Namek,项目名称:SpaceShooter,代码行数:7,代码来源:BonusOnDeathSystem.cs

示例2: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _pool.GetGroup(Matcher.SettingsModel).OnEntityUpdated += update;
     _group = pool.GetGroup(Matcher.DifficultyController);
     _models = pool.GetGroup(Matcher.DifficultyModel);
 }
开发者ID:Namek,项目名称:SpaceShooter,代码行数:7,代码来源:DifficultyControllerSystem.cs

示例3: SetPool

 public void SetPool(Pool pool)
 {
     this.pool = pool;
     group = pool.GetGroup(Matcher.EnemySpawner);
     camera = pool.GetGroup(Matcher.Camera);
     enemyFactory = pool.GetGroup(Matcher.EnemyFactory);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:EnemySpawnerSystem.cs

示例4: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _asteroids = pool.GetGroup(Matcher.Asteroid);
     _levels = pool.GetGroup(Matcher.Level);
     _players = pool.GetGroup(Matcher.Player);
 }
开发者ID:jyunfan2015,项目名称:Entitasteroids,代码行数:7,代码来源:LevelEndingSystem.cs

示例5: SetPool

 public void SetPool(Pool pool)
 {
     this.pool = pool;
     group = pool.GetGroup(Matcher.Score);
     time = pool.GetGroup(Matcher.Time);
     enemies = pool.GetGroup(Matcher.EnemiesModel);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:ScoreSystem.cs

示例6: SetPool

 public void SetPool(Pool pool)
 {
     this.pool = pool;
     group = pool.GetGroup(Matcher.FirstBoss);
     time = pool.GetGroup(Matcher.Time);
     createStages();
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:FirstBossSystem.cs

示例7: SetPool

 public void SetPool(Pool pool)
 {
     this.pool = pool;
     group = pool.GetGroup(Matcher.Input);
     players = pool.GetGroup(Matcher.Player);
     slowGame = pool.GetGroup(Matcher.SlowGame);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:PlayerInputSystem.cs

示例8: SetPool

 public void SetPool(Pool pool)
 {
     group = pool.GetGroup(Matcher.AllOf(Matcher.PlayerScore, Matcher.GameObject));
     killInfo = pool.GetGroup(Matcher.AllOf(Matcher.KillInfo, Matcher.GameObject));
     score = pool.GetGroup(Matcher.Score);
     translation = pool.GetGroup(Matcher.TranslationService);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:PlayerScoreSystem.cs

示例9: SetPool

 public void SetPool(Pool pool)
 {
     this.pool = pool;
     this.pool.GetGroup(Matcher.SettingsModel).OnEntityUpdated += update;
     group = pool.GetGroup(Matcher.DifficultyController);
     difficulties = pool.GetGroup(Matcher.DifficultyModel);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:DifficultyControllerSystem.cs

示例10: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _camera = _pool.GetGroup(Matcher.Camera);
     _time = _pool.GetGroup(Matcher.Time);
     _group = pool.GetGroup(Matcher.AllOf(Matcher.Path, Matcher.GameObject, Matcher.Velocity, Matcher.VelocityLimit, Matcher.Position));
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:PathSystem.cs

示例11: SetPool

 public void SetPool(Pool pool)
 {
     group = pool.GetGroup(Matcher.WaveSpawner);
     time = pool.GetGroup(Matcher.Time);
     camera = pool.GetGroup(Matcher.Camera);
     enemyFactory = pool.GetGroup(Matcher.EnemyFactory);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:7,代码来源:WaveSpawnerSystem.cs

示例12: SetPool

 public void SetPool(Pool pool)
 {
     this.pool = pool;
     group = pool.GetGroup(Matcher.BonusModel);
     currentShip = pool.GetGroup(Matcher.CurrentShip);
     player = pool.GetGroup(Matcher.Player);
     shipBonus = pool.GetGroup(Matcher.ShipBonus);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:8,代码来源:ActivateBonusSystem.cs

示例13: SetPool

 public void SetPool(Pool pool)
 {
     Init(pool);
     _createLevels = pool.GetGroup(Matcher.CreateLevel);
     _players = pool.GetGroup(Matcher.Player);
     _pause = pool.GetGroup(Matcher.PauseGame);
     _blockade = pool.GetGroup(Matcher.MovingBlockade);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:8,代码来源:EndGameSystem.cs

示例14: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _playerGroup = pool.GetGroup(Matcher.Player);
     _timeGroup = pool.GetGroup(Matcher.Time);
     _pause = pool.GetGroup(Matcher.PauseGame);
     _settings = pool.GetGroup(Matcher.SettingsModel);
 }
开发者ID:kicholen,项目名称:SpaceShooter,代码行数:8,代码来源:TestSystem.cs

示例15: SetPool

 public void SetPool(Pool pool)
 {
     _pool = pool;
     _group = _pool.GetGroup(Matcher.Input);
     _players = _pool.GetGroup(Matcher.Player);
     _camera = _pool.GetGroup(Matcher.Camera);
     _slowGame = _pool.GetGroup(Matcher.SlowGame);
 }
开发者ID:Namek,项目名称:SpaceShooter,代码行数:8,代码来源:PlayerInputSystem.cs


注:本文中的Entitas.Pool.GetGroup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。