protected override void Execute() { float nodeSize = LevelEditorGridNodeSizeLibrary.Instance.NodeSize; Vector2 gridPosition = LevelEditorGridHelper.ScreenToGridPosition(touchDownScreenPosition); levelEditorTouchUpOnGridPositionEvent.Dispatch(gridPosition); }
protected override void Execute() { Vector2 gridPosition = LevelEditorGridHelper.ScreenToGridPosition(screenPosition); if (LevelEditorGrid.GridPositions.Contains(gridPosition)) { Abort(); } }
protected override void Execute() { Vector2 gridPosition = LevelEditorGridHelper.ScreenToGridPosition(Input.mousePosition); if (TileGrid.Instance.ContainsTile(gridPosition)) { Abort(); } }
protected override void Execute() { Vector2 gridPosition = LevelEditorGridHelper.ScreenToGridPosition(swipeMoveEventParameter.Position); levelEditorSwipeMovedToGridPositionEvent.Dispatch(gridPosition); }
protected override void Execute() { Vector2 gridPosition = LevelEditorGridHelper.ScreenToGridPosition(touchDownScreenPosition); touchStartOnGridPositionEvent.Dispatch(gridPosition); }