Exemplo n.º 1
0
 public void ResetLevel()
 {
     m_healthManager.ResetHealth();
     foreach (Skill skill in m_skills.Values)
     {
         skill.ResetStrength();
     }
 }
Exemplo n.º 2
0
    public void SpawnToLevel2()
    {
        Level2.SetActive(true);
        Level1.SetActive(false);

        hPlayer.level      = 2;
        transform.position = Level2Spawn.transform.position;
        questManager.ResetObjective();
        healthManager.ResetHealth();
        PlayerPrefs.SetInt("user_level", 2);
    }