Exemple #1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.name == "Player")
        {
            LevelCompleteUI.SetActive(true);
            CustomPlayerPrefs.LevelUpdate(CustomPlayerPrefs.LevelPotence() + 1);
            if (CustomPlayerPrefs.LevelPotence() == 4)
            {
                CustomPlayerPrefs.LevelUpdate(0);
            }
            Time.timeScale = 0f;

            //SceneManager.LoadScene(sceneToLoad);
        }
    }