public void UnselectSpell() { GameManager.instance.selectedSpell = null; grid.CleanCells(reachableCells); grid.CleanCells(unreachableCells); reachableCells.Clear(); unreachableCells.Clear(); }
void OnMouseExit() { EntityBehaviour entityBehaviour = IsThereAnEntity(); if (entityBehaviour && GameManager.instance.selectedSpell == null) { entityBehaviour.MouseExit(); } if (coloredCells.Count > 0) { grid.CleanCells(coloredCells); coloredCells.Clear(); } }
public void MouseExit() { grid.CleanCells(MPRangeCells); }