示例#1
0
        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);
            }
        }
示例#2
0
        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);
        }