Beispiel #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Player")
     {
         Debug.Log("game finished");
         player.StopBGMusic();
         levelcompleted = true;
         LevFinPanel.SetActive(true);
         Time.timeScale = 0f;
     }
 }