internal void PreviewTile(DungeonTile dungeonTile) { if (Program.selectedProgram && mode != Mode.Deploy) { PathPreview.instance.DisplayPreview(grid.FindPath(Program.selectedProgram.myTile, dungeonTile, Program.selectedProgram.movesLeft, Program.selectedProgram.IsFlying())); if (Program.isTargetingAttack) { PathPreview.instance.SetColor(AttackPreview); } else if (Program.isTargetingBreach) { PathPreview.instance.SetColor(BreachPreview); } else { PathPreview.instance.SetColor(MovePreview); } } }