public void SetAttack(AttackDetails attackDetails) { if (currentBtn == null) { SetAttackProperties(attackDetails); targetSelector.EnableTargetSelection(true); } else if (currentBtn == attackDetails.attackBtn) { pointerDown = false; StartCoroutine(DeselectAttack()); targetSelector.EnableTargetSelection(false); targetSelector.ResetPointer(); } else if (currentBtn != attackDetails.attackBtn) { pointerDown = false; StartCoroutine(DeselectAttack()); StartCoroutine(ChangeAttack(attackDetails)); } }