private void OnTriggerEnter(Collider other) { if (other.CompareTag("Rover")) { target = other.transform; line.SetActive(true); robot.DetectPlayer(); } }