private void AvatarStatus(AvatarStatusMsg msg) { txtVocal.text = msg.playerStatus.vocal.ToString(); txtDance.text = msg.playerStatus.dance.ToString(); txtEntertainment.text = msg.playerStatus.entertainment.ToString(); txtIntelligence.text = msg.playerStatus.intelligence.ToString(); txtPotential.text = msg.playerStatus.potential.ToString(); txtCoin.text = msg.playerStatus.coin.ToString(); imgVocal.fillAmount = msg.playerStatus.vocalGage * 0.01f; imgDance.fillAmount = msg.playerStatus.danceGage * 0.01f; imgEntertainment.fillAmount = msg.playerStatus.entertainmentGage * 0.01f; imgIntelligence.fillAmount = msg.playerStatus.intelligenceGage * 0.01f; }
private void AvatarStatus(AvatarStatusMsg msg) { string path; if (msg.character == Character.Boy) { path = "UIImage/Character/BoyRtt"; } else { path = "UIImage/Character/GirlRtt"; } ImgCharacter.texture = Resources.Load <Texture>(path); avatarStatus_Controller.InitStatis(msg.playerStatus); }