예제 #1
0
 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);
     }
 }
예제 #2
0
    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;
    }
예제 #3
0
    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;
        }
    }
예제 #4
0
 public void timeout()
 {
     LoseNotif.SetActive(true);                                                      //menampilkan LoseNotif
     NoMove.SetActive(true);                                                         //menampilkan NoMove
 }