/// <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); }
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); }