public void AcquireTarget(GameObject hit) { objectHit = hit; targetRange = objectHit.GetComponent <EnemyController>().targetRange; targetCanvas.SetActive(false); targetCanvas.SetActive(true); targetHandler.AcquireTarget(hit); StartCoroutine("CheckIfTargetLocked"); }