void OnTriggerEnter(Collider collision) { if (collision.gameObject.tag == "Hand") { PlayerVR.musicOn = !PlayerVR.musicOn; plyr.Music(); } }
public void MusicOnOff() { PlayerVR.musicOn = !PlayerVR.musicOn; plyr.Music(); }