Exemple #1
0
 protected override void OnCreate()
 {
     _controls = new TutorialControls();
     _controls.Enable();
     _moveAction = _controls.DefaultMapping.Move;
     _quitAction = _controls.DefaultMapping.QuitGame;
 }
Exemple #2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            _controls = new TutorialControls();
            _controls.Enable();
            _moveAction = _controls.DefaultMapping.Move;
            _quitAction = _controls.DefaultMapping.QuitGame;

            _moveSystem = World.GetOrCreateSystem <MoveSystem>();
        }
Exemple #3
0
        protected override void OnCreate()
        {
            _controls = new TutorialControls();
            _controls.Enable();
            _moveAction        = _controls.DefaultMapping.Move;
            _generateMapAction = _controls.DefaultMapping.GenerateMap;
            _quitAction        = _controls.DefaultMapping.QuitGame;

            _inputQuery = GetEntityQuery(
                ComponentType.ReadOnly <PlayerInput>()
                );

            RequireForUpdate(_inputQuery);
        }
Exemple #4
0
        protected override void OnCreate()
        {
            _controls = new TutorialControls();
            _controls.Enable();

            _resizeMapAction = _controls.DefaultMapping.ResizeMap;

            _mapQuery = GetEntityQuery(
                ComponentType.ReadWrite <MapData>(),
                ComponentType.ReadOnly <MapTiles>()
                );

            _barrierSystem = World.GetOrCreateSystem <EndSimulationEntityCommandBufferSystem>();
        }
Exemple #5
0
        protected override void OnCreate()
        {
            _barrierSystem = World.GetOrCreateSystem <BeginSimulationEntityCommandBufferSystem>();

            _mapQuery = GetEntityQuery(
                ComponentType.ReadOnly <MapInput>(),
                ComponentType.ReadWrite <MapData>()
                );

            _monstersQuery = GetEntityQuery(ComponentType.ReadOnly <Monster>());

            _controls = new TutorialControls();
            _controls.Enable();

            _generateMapAction  = _controls.DefaultMapping.GenerateMap;
            _resizeMapAction    = _controls.DefaultMapping.ResizeMap;
            _changeMonsterCount = _controls.DefaultMapping.ChangeMonsterCount;

            RequireForUpdate(_mapQuery);
        }
Exemple #6
0
        protected override void OnCreate()
        {
            base.OnCreate();

            _controls = new TutorialControls();
            _controls.Enable();
            _moveAction = _controls.DefaultMapping.Move;
            _quitAction = _controls.DefaultMapping.QuitGame;

            _mapQuery = GetEntityQuery(
                ComponentType.ReadOnly <MapState>(),
                ComponentType.ReadOnly <MapData>(),
                // Don't run if the map is generating
                ComponentType.Exclude <GenerateMap>(),
                ComponentType.Exclude <ChangeMonsterCount>()
                );

            _barrier = World.GetOrCreateSystem <EndSimulationEntityCommandBufferSystem>();

            RequireForUpdate(_mapQuery);
        }
Exemple #7
0
        protected override void OnCreate()
        {
            _endSimBarrier = World.GetOrCreateSystem <EndSimulationEntityCommandBufferSystem>();

            _mapQuery = GetEntityQuery(
                ComponentType.ReadWrite <MapData>(),
                // Don't update if the map is generating
                ComponentType.Exclude <GenerateMap>(),
                ComponentType.Exclude <ChangeMonsterCount>()
                );
            RequireForUpdate(_mapQuery);

            _monstersQuery = GetEntityQuery(ComponentType.ReadOnly <Monster>());

            _controls = new TutorialControls();
            _controls.Enable();

            _generateMapAction       = _controls.DefaultMapping.GenerateMap;
            _resizeMapAction         = _controls.DefaultMapping.ResizeMap;
            _changeMonsterCount      = _controls.DefaultMapping.ChangeMonsterCount;
            _changeMonsterCountLarge = _controls.DefaultMapping.ChangeMonsterCountLarge;
        }
 private void Awake()
 {
     player = GameObject.Find("PlayerTutorialController").GetComponent <TutorialControls>();
 }