Ejemplo n.º 1
0
    /// <summary>
    /// Method ini berfungsi untuk inisialisasi.
    /// </summary>
    void Start()
    {
        previousLevel = PlayerPrefs.GetString("previousScene");
        Button yesBtn = YesButton.GetComponent <Button> ();
        Button noBtn  = NoButton.GetComponent <Button>();

        yesBtn.onClick.AddListener(yesBtnOnClick);
        noBtn.onClick.AddListener(noBtnOnClick);
    }
Ejemplo n.º 2
0
    void Start()
    {
        EasyTTSUtil.Initialize(EasyTTSUtil.UnitedStates);
        gameController = gameObject.GetComponent <GameController1> ();
        Button yes = yesButton.GetComponent <Button> ();
        Button no  = NoButton.GetComponent <Button> ();

        selection = 0;
        inforBrg  = new TheInformationBridge();
        inforBrg.setReachTarget(false);

        EasyTTSUtil.SpeechAdd("Do you want play again");
        Debug.Log("DO you want play again?");
        yes.onClick.AddListener(ClickYes);
        no.onClick.AddListener(ClickNo);
    }