Exemplo n.º 1
0
 public void OpenColorPicker()
 {
     if (colPickerOpen)
     {
         colorPicker.transform.SetAsLastSibling();
     }
     else
     {
         colPickerOpen = true;
         colorPicker   = Instantiate(UIManager.instance.colorPickerPrefab, UIManager.instance.gameWindowContainer);
         colorPicker.Open(myColor, SetMarkerColor, CloseColorPicker);
     }
 }
Exemplo n.º 2
0
    // Colouring Walls
    public void BeginPaintingWalls()
    {
        if (paintingWalls)
        {
            return;
        }

        if (isMouseOccupied)
        {
            FreeMouse();
        }

        paintingWalls   = true;
        isMouseOccupied = true;
        wallColorPicker = Instantiate(UIManager.instance.colorPickerPrefab, UIManager.instance.gameWindowContainer);
        wallColorPicker.Open(paintColor, SetPaintColor, CancelPaintingWalls);
    }