Exemplo n.º 1
0
 // Deselect the current selected tile
 private static void Deselect()
 {
     if (selected)
     {
         selected.SetColor(Color.white);
     }
     selected = null;
 }
Exemplo n.º 2
0
 // Select a tile
 private static void Select(ShaderTest selection)
 {
     Deselect();
     selected = selection;
     selection.SetColor(selectedColor);
 }