本文整理汇总了C#中Entitas.Pool.CreateSystem方法的典型用法代码示例。如果您正苦于以下问题:C# Pool.CreateSystem方法的具体用法?C# Pool.CreateSystem怎么用?C# Pool.CreateSystem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entitas.Pool
的用法示例。
在下文中一共展示了Pool.CreateSystem方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetSystems
public static Systems GetSystems(Pool pool)
{
#if (UNITY_EDITOR)
return new DebugSystems()
#else
return new Systems()
#endif
// Initialize
.Add(pool.CreateSystem<RemoveViewSystem>())
.Add(pool.CreateSystem<AddViewSystem>())
.Add(pool.CreateSystem<CreatePilotsSystem>())
.Add(pool.CreateSystem<StartGameSystem>())
.Add(pool.CreateSystem<CreateEventsSystem>())
.Add(pool.CreateSystem<CreateAircraftSystem>())
.Add(pool.CreateSystem<PauseSystem>())
.Add(pool.CreateSystem<TimeSystem>())
.Add(pool.CreateSystem<UINavigationSystem>())
.Add(pool.CreateSystem<EventPredicateCheckingSystem>())
.Add(pool.CreateSystem<EventResolutionSystem>());
}
示例2: CreateSystems
private Systems CreateSystems(Pool pool)
{
#if (UNITY_EDITOR)
return new DebugSystems()
#else
return new Systems()
#endif
.Add(pool.CreateSystem<TickingSystem>())
.Add(pool.CreateSystem<PositionUpdatingSystem>())
.Add(pool.CreateSystem<RenderForceSystem>())
.Add(pool.CreateSystem<BulletCollisionSystem>())
.Add(pool.CreateSystem<AddViewSystem>())
.Add(pool.CreateSystem<LevelStartingSystem>())
.Add(pool.CreateSystem<SpaceshipControlsSystem>())
.Add(pool.CreateSystem<AddRigidbodySystem>())
.Add(pool.CreateSystem<AgingSystem>())
.Add(pool.CreateSystem<MaxAgeSystem>())
.Add(pool.CreateSystem<AsteroidSplittingSystem>())
.Add(pool.CreateSystem<RenderRotationSystem>())
.Add(pool.CreateSystem<GunFiringSystem>())
.Add(pool.CreateSystem<GunCooldownSystem>())
.Add(pool.CreateSystem<LevelEndingSystem>())
.Add(pool.CreateSystem<SpaceshipRespawningSystem>())
.Add(pool.CreateSystem<SpaceshipCollisionSystem>())
.Add(pool.CreateSystem<InputDestructionSystem>())
.Add(pool.CreateSystem<BoundsWrappingSystem>())
.Add(pool.CreateSystem<RenderPositionSystem>())
.Add(pool.CreateSystem<RemoveViewSystem>())
.Add(pool.CreateSystem<DestroyingSystem>());
}