コード例 #1
0
 void Start()
 {
     waktu1 = GetComponent <TextMesh>();
     KumpulanSampah.SetActive(true);
     tombolResume.SetActive(false);
     tombolMenu.SetActive(false);
     textPaused.gameObject.SetActive(false);
     selanjutnya.gameObject.SetActive(false);
     nilai_tertinggi = PlayerPrefs.GetInt("NTS11");
     sampah          = 5;
     nilai           = 0;
 }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     if (paused)
     {
         KumpulanSampah.SetActive(false);
     }
     else if (!paused)
     {
         KumpulanSampah.SetActive(true);
         resetScore();
         waktumulai();
     }
 }
コード例 #3
0
 void Start()
 {
     img.gameObject.SetActive(true);
     waktu1 = GameObject.Find("Waktu").GetComponent <TextMesh>();
     KumpulanSampah.SetActive(true);
     tombolResume.SetActive(false);
     tombolMenu.SetActive(false);
     textPaused.gameObject.SetActive(false);
     selanjutnya.gameObject.SetActive(false);
     nilai_tertinggi = PlayerPrefs.GetInt("NTS2");
     sampah          = 5;
     nilai           = 0;
     a             = 1;
     hitungMundur1 = hitungMundur;
 }