void SetRoleDynamicProperty() { ArkCrossEngine.RoleInfo player = ArkCrossEngine.LobbyClient.Instance.CurrentRole; if (player != null) { if (labellv != null) { labellv.text = "" + player.Level; } RoleInfo ri = ArkCrossEngine.LobbyClient.Instance.CurrentRole; if (ri != null) { UserInfo ui = ri.GetPlayerSelfInfo(); if (ui != null) { CharacterProperty cp = ui.GetActualProperty(); if (cp != null) { if (labellvfight != null) { labellvfight.text = cp.AttackBase.ToString(); } } } } if (money != null) { money.text = player.Money.ToString(); } if (diamond != null) { diamond.text = player.Gold.ToString(); } int needexp = 0; ArkCrossEngine.PlayerLevelupExpConfig plec = ArkCrossEngine.PlayerConfigProvider.Instance.GetPlayerLevelupExpConfigById(player.HeroId); if (plec != null) { needexp = plec.m_ConsumeExp; } UpdateEx(player.Level, player.Exp); if (labelhpmax != null) { ArkCrossEngine.UserInfo ui = player.GetPlayerSelfInfo(); if (ui != null) { ArkCrossEngine.CharacterProperty cp = ui.GetActualProperty(); if (cp != null) { labelhpmax.text = cp.HpMax.ToString(); } } } } }