void Update() { if (WinCondition.win == true) //Jika total jawaban benar sementara mencapai total jawaban benar { finished = true; //variabel finish diset bernilai true WinNotif.SetActive(true); //menampilkan winnotif & nomove NoMove.SetActive(true); } }
public void timeout() { LoseNotif.SetActive(true); //menampilkan LoseNotif NoMove.SetActive(true); //menampilkan NoMove GameObject cam = GameObject.Find("Main Camera"); SwipeCamera swipe = cam.GetComponent <SwipeCamera> (); swipe.enabled = false; }
void Update() { if (WinConditionSwipe.win == true) //Jika total jawaban benar sementara mencapai total jawaban benar { finished = true; //variabel finish diset bernilai true WinNotif.SetActive(true); //menampilkan winnotif & nomove NoMove.SetActive(true); GameObject cam = GameObject.Find("Main Camera"); SwipeCamera swipe = cam.GetComponent <SwipeCamera> (); swipe.enabled = false; } }
public void timeout() { LoseNotif.SetActive(true); //menampilkan LoseNotif NoMove.SetActive(true); //menampilkan NoMove }