protected override void OnCreate() { _controls = new TutorialControls(); _controls.Enable(); _moveAction = _controls.DefaultMapping.Move; _quitAction = _controls.DefaultMapping.QuitGame; }
protected override void OnCreate() { base.OnCreate(); _controls = new TutorialControls(); _controls.Enable(); _moveAction = _controls.DefaultMapping.Move; _quitAction = _controls.DefaultMapping.QuitGame; _moveSystem = World.GetOrCreateSystem <MoveSystem>(); }
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); }
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>(); }
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); }
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); }
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>(); }