public void OnAirTap() { { GameState.Instance.Playing = true; PlaySongNotes psn = (PlaySongNotes)keyboard.gameObject.GetComponent(typeof(PlaySongNotes)); psn.playPauseSong(); // hide the play button gameObject.SetActive(false); // show the pause button pauseBtn.gameObject.SetActive(true); } }
public void OnAirTap() { { Debug.Log("Playing changed"); GameState.Instance.Playing = !GameState.Instance.Playing; PlaySongNotes psn = (PlaySongNotes)keyboard.gameObject.GetComponent(typeof(PlaySongNotes)); psn.playPauseSong(); } }