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