public void UpdateIntomoney(string intoMoney) { if (!string.IsNullOrEmpty(intoMoney)) { labelBagmoney.text = "" + EginTools.NumberAddComma(intoMoney); } }
public void SetPlayerInfo(int avatar, string nickname, string intomoney, string level) { userAvatar.spriteName = "avatar_" + avatar; userNickname.text = nickname; userIntomoney.text = "¥ " + EginTools.NumberAddComma(intomoney); kDetailNickname.text = nickname; kDetailLevel.text = level; kDetailBagmoney.text = intomoney; }
public void UpdateIntoMoney(string intomoney) { if (userIntomoney == null) { GameObject.Find("Label_Bagmoney").GetComponent <UILabel>().text = EginTools.NumberAddComma(intomoney); } else { userIntomoney.text = "¥ " + EginTools.NumberAddComma(intomoney); } // userIntomoney = userIntomoney == null ? GameObject.Find ("Label_Bagmoney").GetComponent<UILabel>() : userIntomoney; // userIntomoney.text = "¥ " + EginTools.NumberAddComma(intomoney); }