Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     profileIcon.sprite   = animalIconChoices[currentCharacter];
     healthBar.fillAmount = SetPercentage(currentExp);
     scoreTextObject.text = "Score: " + currentScore;
     levelTextObject.text = "Level: " + characterLevel;
     newExpTotal          = currentExp + currentScore;
     levelGained          = characterData.AddExperience(currentScore);
     SaveSystem.SaveCharacterData(characterData);
     StartCoroutine(AddExperience());
 }