コード例 #1
0
 void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         if (control.AllGhostsDead())
         {
             Application.LoadLevel(Application.loadedLevel + 1);
         }
     }
 }