Ejemplo n.º 1
0
    private void Place(Vector2Int pos)
    {
        BoardObject obj = UnplacedObjects[selectedObjectIndex];

        UnplacedObjects.RemoveAt(selectedObjectIndex);
        SelectObject(-1);

        obj.Move(pos);
        obj.Place();
        level.board.SetBoardObject(pos, obj);
        displayer.ReloadButtons();
        CalculateLaserPaths();
    }