Ejemplo n.º 1
0
 public void Initialize(Unity.Entities.World space)
 {
     controllerSystem       = space.GetOrCreateSystem <ControllerSystem>();
     playerControllerSystem = space.GetOrCreateSystem <PlayerInputSystem>();
     playerSkillsSystem     = space.GetOrCreateSystem <PlayerSkillsSystem>();
     AddSystemToUpdateList(controllerSystem);
     AddSystemToUpdateList(playerControllerSystem);
     AddSystemToUpdateList(playerSkillsSystem);
     playerSpawnSystem = space.GetOrCreateSystem <PlayerSpawnSystem>();
     AddSystemToUpdateList(playerSpawnSystem);
     cursorStateSystem = space.GetOrCreateSystem <CursorStateSystem>();
     AddSystemToUpdateList(cursorStateSystem);
     gameUISystem = space.GetOrCreateSystem <GameUISystem>();
     AddSystemToUpdateList(gameUISystem);
     playerInteractSystem = space.GetOrCreateSystem <PlayerInteractSystem>();
     AddSystemToUpdateList(playerInteractSystem);
 }
Ejemplo n.º 2
0
 public void CombineWithUI(MenuSpawnSystem menuSpawnSystem, GameUISystem gameUISystem)
 {
     gameStartSystem.menuSpawnSystem = menuSpawnSystem;
     gameStartSystem.gameUISystem    = gameUISystem;
 }