void OnClick() { UILabel lbl = GetComponent <UILabel>(); if (lbl != null) { string url = lbl.GetUrlAtPosition(UICamera.lastHit.point); if (!string.IsNullOrEmpty(url)) { string [] typs = url.Split(','); if (int.Parse(typs[0]) == 4) { if (int.Parse(typs[1]) == GamePlayer.Instance.InstId) { return; } tipsObj.SetActive(true); HaoyouShezhi hs = tipsObj.GetComponent <HaoyouShezhi>(); hs.insetId = uint.Parse(typs[1]); hs.name = typs[2]; } } } }
void OnClickLIconB(ButtonScript obj, object args, int param1, int param2) { tipsObj.SetActive(true); HaoyouShezhi hs = tipsObj.GetComponent <HaoyouShezhi> (); tipsObj.transform.position = new Vector3(obj.transform.position.x + 0.8f, obj.transform.position.y, obj.transform.position.z); hs.insetId = Left.instId_; hs.name = Left.playerName_; }