public void Hide() { if (isShowing) { isShowing = false; foreach (Highlight light in lights) { TileHighlighter.DestroyHighlight(light); } lights.Clear(); } }
public void Hide() { if (ramMove != null) { MapController.instance.GetTile(ramMove.pos).OnMouseClick -= ramMove.OnMouseClick; } TileHighlighter.DestroyHighlight(posHighlight); foreach (PossibleMove move in possibleMoves) { MapController.instance.GetTile(move.destination).OnMouseClick -= move.OnMouseClick; TileHighlighter.DestroyHighlight(move.highlight); } }