public void Save() { exp += stack; stack = 0; ExperienceIO.SaveExp(exp); ExpChanged?.Invoke(exp); }
public void GainExp() { exp += level; ExpChanged?.Invoke(exp); if (exp < expToLevel) { return; } exp %= expToLevel; level++; expToLevel *= level; LevelChanged?.Invoke(level); ExpChanged?.Invoke(exp); }
public void Load() { exp = ExperienceIO.LoadExp(); ExpChanged?.Invoke(exp); }