// Update is called once per frame private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag == "Player") { Debug.Log("Changing sound"); emitter.ChangeEvent(newSound); } }