private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("Player")) { basicToggle?.OnToggle(); } }