예제 #1
0
    //ACTION EVENT LISTENERS ////////////////////////////////////////////////////////////////////////////////
    public void OnActionMoveStarted()
    {
        //Mark the board with the tiles the selected bug can move(travel) to
        currentGameState = BoardGameState.MovingBug;
        actionBug = selectedBug;
        int movementRange = actionBug.GetMovementRange();

        Vector2 selectedTilePos = selectedTile.GetTilePos();
        List<Vector2> bugPossibleMoves = actionBug.GetPossibleMoves(); //Get the possible moves of the bug
        board.GetMarkManager().MarkMovementRangeOnTheBoard(selectedTilePos, bugPossibleMoves); //Mark where the bug can go
    }