Esempio n. 1
0
        void OnMouseClickEntity(object sender, EntityMgr.RMouseClickEntityEvent e)
        {
            if (e.entity == null)
            {
                return;
            }

            CommonCmpt cc = e.entity.commonCmpt;

            if (cc != null && cc.entityProto.proto == EEntityProto.Npc)
            {
                if (GameUI.Instance.mNpcDialog.dialogInterpreter.SetNpoEntity(e.entity))
                {
                    GameUI.Instance.mNpcDialog.Show();
                }
            }
        }
Esempio n. 2
0
        void OnResponse(object sender, EntityMgr.RMouseClickEntityEvent e)
        {
            if (e.entity == null)
            {
                return;
            }

            if (PeScenarioUtility.IsObjectContainEntity(obj, e.entity))
            {
                Post();
            }
            //if (obj.isAnyNpo && e.entity != null)
            //    Post();
            //else
            //{
            //    PeEntity entity = PeScenarioUtility.GetEntity(obj);
            //    if (entity == e.entity)
            //        Post();
            //}
        }