void OnTriggerEnter(Collider other) { if (turnMan.preview == true) { return; } if (other.tag == "Detector") { if (alreadyHit == true) { return; } alreadyHit = true; turnMan.InSameSquare(id, dir); parent.SetActive(false); // Invoke ("HitBack", 0.35f); } }