Ejemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         levelManager.AddCoinsOnCompletion(); //LevelComplete : LevelUI : SceneBoss
         Time.timeScale = 0f;
         pauseButton.SetActive(false);
         LevelCompleteUI.SetActive(true);
         LevelCoinCount.SetActive(false);
         LevelStarCount.SetActive(false);
     }
 }