private void OnTriggerExit(Collider other) { if (other.gameObject.name == "Ball") { counter.SetBallExit(); } }