Esempio n. 1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         WorldTime worldtime = (WorldTime)GameObject.FindGameObjectWithTag("GameManager").GetComponent <WorldTime> ();
         worldtime.GoToNextDay();
     }
 }