Example #1
0
 private void Update()
 {
     for (int i = 0; i < _partyContainer.PartyMembers.Count; i++)
     {
         _gainedXpText.text = "XP Earned" + "\n" + CombatRewards.XPEarned.ToString();
     }
     PostCombatXPCounter.OnXPGain();
 }
Example #2
0
 public void ReturnToWorldScene()
 {
     GiveXPToPartyInstant();
     PostCombatXPCounter.OnXPGain();
     CombatRewards.XPEarned = 0; // Sets earned xp to 0 in case player skips post combat screen
     SaveCharacters.Instance.SavePartyMembers();
     SceneManager.LoadScene(PlayerLocation.SceneName);
 }
Example #3
0
 void Start()
 {
     SaveCharacters.Instance.LoadMembers();
     for (int i = 0; i < _partyContainer.PartyMembers.Count; i++)
     {
         PostCombatXPCounter.OnXPGain();
         PostCombatXPCounter.OnLevelChange();
     }
     XPCountersSlideIn(Screen.width / 2); //Slides the counters to the center (X) of the screen
 }