private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player") && GetComponent <Renderer>().enabled) { GetComponent <AudioSource>().Play(); parent.Next(); } }