示例#1
0
 public void SetPlayerData(PlayerData playerData)
 {
     _playerData             = playerData;
     professionNameText.text = Localization.Get(_playerData.heroData.name);
     professionPortraitImage.SetSprite(ResMgr.instance.Load <Sprite>(ResPath.GetPlayerPortraitPath(_playerData.portrait)));
     if (_playerData.Id == GameProxy.instance.PlayerInfo.playerData.Id)
     {
         activateStatusText.text = Localization.Get("ui.change_profession_view.is_selected");
     }
     else
     {
         if (PlayerProxy.instance.IsPlayerUnlocked((int)_playerData.Id))
         {
             activateStatusText.text = Localization.Get("ui.change_profession_view.is_activated");
         }
         else
         {
             activateStatusText.text = Localization.Get("ui.change_profession_view.is_not_activated");
         }
     }
 }