예제 #1
0
    public void OnAirTap()
    {
        songList.gameObject.SetActive(false);
        GameState.Instance.currentSong = currentItem.Find("ButtonContent").Find("Label").GetComponent <TextMesh>().text;
        selectSongBtn.Find("ButtonContent").Find("Label").GetComponent <TextMesh>().text = GameState.Instance.truncate("Song: " + GameState.Instance.currentSong);

        //accessing the script on another object and calling a function
        PlaySongNotes play = (PlaySongNotes)keyboard.gameObject.GetComponent(typeof(PlaySongNotes));

        play.songSelected();
    }
예제 #2
0
    public void OnAirTap()
    {
        {
            Debug.Log("Song Forwarded");



            GameState.Instance.Forward = true;

            PlaySongNotes psn = (PlaySongNotes)keyboard.gameObject.GetComponent(typeof(PlaySongNotes));
            psn.forwardSong();
        }
    }
예제 #3
0
    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);
        }
    }
예제 #4
0
    public void OnAirTap()
    {
        {
            Debug.Log("Playing changed");



            GameState.Instance.Playing = !GameState.Instance.Playing;


            PlaySongNotes psn = (PlaySongNotes)keyboard.gameObject.GetComponent(typeof(PlaySongNotes));
            psn.playPauseSong();
        }
    }
예제 #5
0
    public void OnAirTap()
    {
        if (currentlyPlacingKeyboard)
        {
            Debug.Log("kEYBOARD PLACEMENT dONE");
            gameObject.SetActive(false);
            instructionText.gameObject.SetActive(false);
            showMoveButtons(false);
            gameRoot.gameObject.GetComponent <ManipulationHandler>().enabled = false;

            makePianoTransparent();

            //PlayButton.gameObject.SetActive(true);
            PauseButton.gameObject.SetActive(true);
            ForwardButton.gameObject.SetActive(true);
            BackwardButton.gameObject.SetActive(true);
            GameState.Instance.keyboardPlaced = true;
            fullMenu.gameObject.SetActive(true);

            PlaySongNotes psn = (PlaySongNotes)keyboard.gameObject.GetComponent(typeof(PlaySongNotes));
            psn.startGetReadyCountDown();
        }
    }