private void OnMailInfoClickEvent(IEvent ievent) { MailInfoClickEvent evt = ievent as MailInfoClickEvent; if (evt.vec != null && DataModel.SelectData != null && DataModel.SelectData.InfoData.characterId > 0) { UIConfig.OperationList.Loction = evt.vec; PlayerDataManager.Instance.ShowCharacterPopMenu(DataModel.SelectData.InfoData.characterId, DataModel.SelectData.InfoData.characterName, 10); } }
public void OnClickLable() { var worldPos = UICamera.currentCamera.ScreenToWorldPoint(UICamera.lastTouchPosition); var localPos = transform.root.InverseTransformPoint(worldPos); localPos.z = 0; var e = new MailInfoClickEvent(localPos); EventDispatcher.Instance.DispatchEvent(e); }