void SVR_onAskFriend(string _msg) { Proto.OnAskFriend msg = JsonUtility.FromJson <Proto.OnAskFriend>(_msg); UIManager.instance.ShowPanel(UIPanel.MainScene.askFriend).GetComponent <FriendAsk>().Init(msg); }
public void Init(Proto.OnAskFriend msg) { friendUid = msg.uid; transform.Find("nickname").GetComponent <Text>().text = msg.nickname; transform.Find("sex").GetComponent <Image>().sprite = Util.GetSprite(ImgType.SexImg, msg.sex); }