void SetPlayerView(ref PlayerView view, UserInfo info) { NUserInfo userInfo = userPackage.GetUserInfo(info.Uid); view.name.text = userInfo.name; view.level.text = string.Format("Lv.{0}", userPackage.GetLevel(info.Contribution)); view.bloodMax = 20 + 2 * info.Health; view.blood.value = (float)info.Blood / (float)view.bloodMax; }