protected void Callback_ExpTotal() { if ((int)_safePlayerPrefs.GetFloat_EarnedExp() != 0 || _expForWinAttempts != 0) { ShowLevelProgress(); Debug.Log("_textExpTotal " + (int)_safePlayerPrefs.GetFloat_PlayerExp() + " " + _playerManager.xp); _uiAnimatorManager.ShowTextFieldUpdateAniamtion( _textExpTotal, _playerManager.xp, _playerManager.xp + (int)_safePlayerPrefs.GetFloat_PlayerExp(), () => { _textExpTotal.text = string.Format("{0} XP", _textExpTotal.text); }); } }
private void CalculateEarnedExp(float bonus) { // TODO --- узнать как будет рассчитываться ! _safePlayerPrefs.AddEarnedExp( _safePlayerPrefs.GetFloat_PlayerExp() + bonus); }