Exemple #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         //Debug.Log("Sector four passed!");
         // Number is equal to one of the sectors
         PlayerPrefs.SetInt("ActualProgresInGame", 4);
         ComparingTheHighestLevelAchieved.SetHighestLevel();
     }
 }
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.CompareTag("Player"))
     {
         //Debug.Log("Sector one passed!");
         // Number is equal to one of the sectors
         PlayerPrefs.SetInt("ActualProgresInGame", 1);
         ComparingTheHighestLevelAchieved.SetHighestLevel();
         cinemachineImpulseListener.enabled = false;
     }
 }