public void UnselectSpell()
 {
     GameManager.instance.selectedSpell = null;
     grid.CleanCells(reachableCells);
     grid.CleanCells(unreachableCells);
     reachableCells.Clear();
     unreachableCells.Clear();
 }
Exemple #2
0
    void OnMouseExit()
    {
        EntityBehaviour entityBehaviour = IsThereAnEntity();

        if (entityBehaviour && GameManager.instance.selectedSpell == null)
        {
            entityBehaviour.MouseExit();
        }
        if (coloredCells.Count > 0)
        {
            grid.CleanCells(coloredCells);
            coloredCells.Clear();
        }
    }
Exemple #3
0
 public void MouseExit()
 {
     grid.CleanCells(MPRangeCells);
 }