Beispiel #1
0
    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();
        }
    }
Beispiel #3
0
    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);
    }
Beispiel #5
0
    protected override void Execute()
    {
        Vector2 gridPosition = LevelEditorGridHelper.ScreenToGridPosition(touchDownScreenPosition);

        touchStartOnGridPositionEvent.Dispatch(gridPosition);
    }