Beispiel #1
0
 private void HandlePlayerReputation(ReputationVO vo)
 {
     numberText.text       = vo.Reputation.ToString("#,##0") + "/" + vo.ReputationMax.ToString("#,##0");
     levelText.text        = AmbitionApp.GetModel <LocalizationModel>().GetString("reputation." + vo.Level);
     reputationIcon.sprite = ReputationLevelIcons[vo.Level - 1];
     reputationBar.value   = (float)vo.Reputation / (float)vo.ReputationMax;
 }
        private void HandleReputation(ReputationVO rep)
        {
            LocalizationModel phrases = AmbitionApp.GetModel <LocalizationModel>();
            string            str     = "Reputation Level Benefits\n";

            for (int i = 1; i < rep.Level; i++)
            {
                str += phrases.GetString("reputation_text." + i.ToString() + "\n");
            }
            _text.text = str;
        }