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

        touchStartOnGridPositionEvent.Dispatch(gridPosition);
    }