public void ShowSelectionAttackTarget(bool state) { AttackTargetSelection.gameObject.SetActive(state); if (state) { AttackTargetSelection.gameObject.transform.localScale = Vector3.one; AttackTargetSelection.gameObject.transform.DOScale(new Vector3(1.2f, 1.2f, 1f), 0.5f).SetEase(Ease.OutQuint).SetLoops(int.MaxValue, LoopType.Yoyo); audio.PlaySelectTarget(); } else { DOTween.Kill(AttackTargetSelection.gameObject.transform); } }