public static void SetTarget(ITargetable target, bool show = true) { if (indicator == null) { indicator = UIManager._instance.CreateTargetIndicator(target.getGridPosition(), Color.red, true); } else { indicator.SetTarget(target.getGridPosition()); indicator.SetColor(Color.red); indicator.SetShow(show); } currentTarget = target; currentPosition = target.getGridPosition(); CameraFollow.target = target.GetTransform(); if (Character.GetCharacterAtTile(currentPosition) != null) { BattleUIContainer.RefreshUnitView(Character.GetCharacterAtTile(currentPosition)); } if (currentTargetList != null && currentTargetList.Contains(target)) { SelectedIndex = currentTargetList.IndexOf(target); } }