Example #1
0
    private void UpdateViaNotify(INotifyArgs e)
    {
        EntityDataUpdateNotify notify = (EntityDataUpdateNotify)e;

        if (m_currentVipLevel != PlayerDataManager.Instance.GetPlayerVIPLevel())
        {
            RefreshTitle();
        }
    }
Example #2
0
        void UpdateValues(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                SetVigourValue();
            }
        }
Example #3
0
        void ResetStatus(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                SetHeroStatus();
            }
        }
Example #4
0
        private void UpdateViaNotify(INotifyArgs inotifyArgs)//设置各种属性
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                SetHeroData();
            }
        }
Example #5
0
        public void UpdateViaNotify(INotifyArgs inotifyArgs)//设置各种属性
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                UpdateInfoPanelInfo();
            }
        }
Example #6
0
        public void UpdateViaNotify(INotifyArgs inotifyArgs)        //设置各种属性
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (IsShow && entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                UpdateAttribute();
            }
        }
Example #7
0
        public void UpdateViaNotify(INotifyArgs inotifyArgs)//设置次数等属性
        {
            EntityDataUpdateNotify notify = (EntityDataUpdateNotify)inotifyArgs;

            if (notify.nEntityClass == TypeID.TYPEID_PLAYER && notify.IsHero)
            {
                RefreshDrawTime();
            }
        }
Example #8
0
        void UpdateViaNotify(INotifyArgs inotifyArgs)        //设置各种属性
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                UpdateButtonStatus();
            }
        }
Example #9
0
    void UpdateViaNotify(INotifyArgs iNotifyArgs)
    {
        EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)iNotifyArgs;

        if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
        {
            Updatelabel();
        }
    }
Example #10
0
        void UpdateEntityData(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                m_RoleModelPanel.ChangeHeroFashion();
                UpdateHeroAttribute();
            }
        }
Example #11
0
        void UpdateColdWorkData(INotifyArgs inotifyArgs)
        {
            //TraceUtil.Log("UpdatePlayerValue:" + PlayerManager.Instance.FindHeroDataModel().PlayerValues.PLAYER_FIELD_LASTACTIVE_TIME);
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                UpdateChacheTime(null);
            }
        }
Example #12
0
        void ResetStatus(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;
            var pvpPlayerData = PVPBattleManager.Instance.GetPVPPlayerData();

            if (entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER &&
                pvpPlayerData.uidEntity == entityDataUpdateNotify.EntityUID)
            {
                SetHeroStatus();
            }
        }
Example #13
0
        /// <summary>
        /// 更新单实体属性
        /// </summary>
        /// <param name="obj"></param>
        void SetMeridiansOwnLabel(INotifyArgs iNotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)iNotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                TraceUtil.Log("刷新面板属性");
                this.MeridiansNumLabel.SetButtonText(PlayerManager.Instance.FindHeroDataModel().PlayerValues.PLAYER_FIELD_PRACTICE_NUM.ToString());
                MeridiansDragPanelList.ApplyAllItem(P => P.InitPanel(this));
                meridiansAttributePanel.Show(this);
            }
        }
Example #14
0
//        void ShowAtkInfo()
//        {
//            int NewAtk = HeroAttributeScale.GetScaleAttribute(HeroAttributeScaleType.Display_Combat, PlayerManager.Instance.FindHeroDataModel().UnitValues.sMsgPropCreateEntity_SC_UnitVisibleValue.UNIT_FIELD_FIGHTING);
//            if (CurrentAtkNumber >= NewAtk)
//            {
//                CurrentAtkNumber = NewAtk;
//                return;
//            }
//            //TraceUtil.Log("刷新人物信息");
//
//            var addAtkNum = NewAtk - CurrentAtkNumber;
//            var heroPos = PlayerManager.Instance.FindHero().transform.position + new Vector3(CommonDefineManager.Instance.CommonDefine.HitNumber_VectorX, CommonDefineManager.Instance.CommonDefine.HitNumber_VectorY, CommonDefineManager.Instance.CommonDefine.HitNumber_VectorZ);
//            PopupTextController.SettleResult(heroPos, addAtkNum.ToString(), FightEffectType.TOWN_EFFECT_ZHANLI);
//
//            CurrentAtkNumber = NewAtk;
//            m_isShowZhanLiAnim = false;
//        }

        void UpdateViaNotify(INotifyArgs inotifyArgs)
        {
            //if (!m_isShowZhanLiAnim)
            //    return;

            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                // ShowAtkInfo();
            }
        }
Example #15
0
    public void UpdateViaNotify(object inotifyArgs)//设置各种属性
    {
        EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

        if (entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_MONSTER)
        {
            SMsgPropCreateEntity_SC_Monster monster = (SMsgPropCreateEntity_SC_Monster)MonsterManager.Instance.GetEntityMode(entityDataUpdateNotify.EntityUID).EntityDataStruct;
            PlayCutBloodAnimation(monster.UID);            //更新血量
            if (MonsterManager.Instance.IsMonsterBossType(monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID))
            {
                if (ShardProgressBar == null)
                {
                    //防守副本防甲为空
                    return;
                }

                int   bossShard  = monster.MonsterUnitValues.UNIT_FIELD_SHARD;
                float shardValue = (float)bossShard / BattleConfigManager.Instance.MonsterConfigList[monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID].m_shieldpoint;
                //ShardProgressBar.fillAmount = shardValue;

                //防护值恢复特效
                if (m_previousshardValue == 0 && bossShard >= BattleConfigManager.Instance.MonsterConfigList[monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID].m_shieldpoint)
                {
                    PlayRecoverProtectionEff();
                }
                m_previousshardValue = bossShard;

                TweenFloat.Begin(0.3f, ShardProgressBar.fillAmount, shardValue, ChangeShardProgressBar);
                if (IsShowStatusLabel)
                {
                    ShardNumLabel.text = string.Format("{0}/{1}", bossShard, BattleConfigManager.Instance.MonsterConfigList[monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID].m_shieldpoint);
                }
                else
                {
                    ShardNumLabel.text = "";
                }
                if (shardValue <= 0)
                {
                    PlayerShardEffect(monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID);
                    MonsterManager.Instance.GetEntityMode(entityDataUpdateNotify.EntityUID).GO.GetComponent <HurtFlash>().OnDisrupt(true);
                }
                else
                {
                    MonsterManager.Instance.GetEntityMode(entityDataUpdateNotify.EntityUID).GO.GetComponent <HurtFlash>().OnDisrupt(false);
                    ShardProgressBar.enabled = true;
                    ShardBarFrame.enabled    = true;
                    m_isFlag = true;
                }
            }
        }
    }
Example #16
0
        void UpdateViaNotify(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                if (gameObject.active != false)
                {
                    roleModelPanel.ChangeHeroFashion();
                    ShowPanelInfo();
                }
                roleAttributePanel.ShowAttributePanelInfo();
            }
        }
Example #17
0
        void ResetStatus(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            //TraceUtil.Log("更新装备");
            if (entityDataUpdateNotify.IsHero && CheckIsChange())
            {
                //TraceUtil.Log("可以更新装备");
                if (!IsUpdatePanel)
                {
                    IsUpdatePanel = true;
                    DoForTime.DoFunForTime(0.2f, UpdatePanelForTime, null);
                }
                //Show(SelectItemData,MyParent);
            }
        }
Example #18
0
        public void UpdateViaNotify(INotifyArgs inotifyArgs)//设置各种属性
        {
            if (!IsShow)
            {
                return;
            }

            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                int FashionID = PlayerManager.Instance.FindHeroDataModel().PlayerValues.PlayerCommonValue.PLAYER_FIELD_VISIBLE_FASHION;
//                if ((CurrentFashiondata == null && FashionID != 0) || (CurrentFashiondata != null && CurrentFashiondata._goodID != FashionID))
//                {
                SetPanelAttribute(null);
//                }
            }
        }
Example #19
0
    void ResetPortalObjcetStatus(INotifyArgs inotifyArgs)
    {
        EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

        if (entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_CHUNNEL)
        {
            foreach (EntityModel child in m_portalList)
            {
                if (child != null)
                {
                    SMsgPropCreateEntity_SC_Channel sMsgPropCreateEntity_SC_Channel = (SMsgPropCreateEntity_SC_Channel)child.EntityDataStruct;
                    bool Active = sMsgPropCreateEntity_SC_Channel.ChannelValue.MAST_FIELD_VISIBLE_STATE == 0 ? true : false;
                    if (child.GO.activeSelf != Active)
                    {
                        child.GO.SetActive(Active);
                    }
                }
            }
        }
    }
Example #20
0
        private void UpdateViaNotify(INotifyArgs inotifyArgs)//设置各种属性
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                SetPanelInfo();

                int explode = PlayerManager.Instance.FindHeroDataModel().PlayerValues.PLAYER_FIELD_BREAKOUT_FLAG;

                if (explode == 0)
                {
                    ((PlayerBehaviour)PlayerManager.Instance.FindHeroEntityModel().Behaviour).IsExplodeState = false;
                    PlayerManager.Instance.FindHeroEntityModel().GO.GetComponent <PlayerHurtFlash>().OnBurst(false);
                }
                else
                {
                    ((PlayerBehaviour)PlayerManager.Instance.FindHeroEntityModel().Behaviour).IsExplodeState = true;
                    PlayerManager.Instance.FindHeroEntityModel().GO.GetComponent <PlayerHurtFlash>().OnBurst(true);
                }
            }
        }
Example #21
0
        void ResetStatus(INotifyArgs inotifyArgs)
        {
            EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

            if (entityDataUpdateNotify.IsHero && entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_PLAYER)
            {
                UpdateHeroStatus();

                int explode = PlayerManager.Instance.FindHeroDataModel().PlayerValues.PLAYER_FIELD_BREAKOUT_FLAG;

                if (explode == 0)
                {
                    ((PlayerBehaviour)PlayerManager.Instance.FindHeroEntityModel().Behaviour).IsExplodeState = false;
                    //PlayerManager.Instance.FindHeroEntityModel().GO.GetComponent<PlayerHurtFlash>().OnBurst(false);  //关闭玩家爆气效果
                }
                else
                {
                    ((PlayerBehaviour)PlayerManager.Instance.FindHeroEntityModel().Behaviour).IsExplodeState = true;
                    //PlayerManager.Instance.FindHeroEntityModel().GO.GetComponent<PlayerHurtFlash>().OnBurst(true);  //打开玩家爆气效果
                }
            }
        }
Example #22
0
    public void UpdateViaNotify(object inotifyArgs)    //设置各种属性
    {
        EntityDataUpdateNotify entityDataUpdateNotify = (EntityDataUpdateNotify)inotifyArgs;

        //if (entityDataUpdateNotify.nEntityClass == TypeID.TYPEID_MONSTER)
        if (m_BossUID == entityDataUpdateNotify.EntityUID)
        {
            SMsgPropCreateEntity_SC_Monster monster = (SMsgPropCreateEntity_SC_Monster)MonsterManager.Instance.GetEntityMode(entityDataUpdateNotify.EntityUID).EntityDataStruct;
            PlayCutBloodAnimation(monster.UID);            //更新血量

            //更新防护值
            if (MonsterManager.Instance.IsMonsterBossType(monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID))
            {
                if (ShardProgressBar == null)
                {
                    //防守副本防甲为空
                    return;
                }
                MonsterConfigData monsterConfig = BattleConfigManager.Instance.MonsterConfigList[monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID];
                int   bossShard  = monster.MonsterUnitValues.UNIT_FIELD_SHARD;
                float shardValue = 0;
                if (monsterConfig.m_shieldpoint == 0)
                {
                    shardValue = 0;
                }
                else
                {
                    shardValue = bossShard / monsterConfig.m_shieldpoint;
                }
                if (shardValue <= 0)
                {
                    if (monsterConfig.m_shieldpoint > 0)                 //防护值最大值为0的怪没有防护
                    {
                        //StartCoroutine("BreakDefenseTipAppear",BreakDefenseTipAppearDelay);
                        //PlayerShardEffect(monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID);
                        MonsterManager.Instance.GetEntityMode(entityDataUpdateNotify.EntityUID).GO.GetComponent <HurtFlash>().OnDisrupt(true);
                    }
                }
                else
                {
                    MonsterManager.Instance.GetEntityMode(entityDataUpdateNotify.EntityUID).GO.GetComponent <HurtFlash>().OnDisrupt(false);
//					ShardProgressBar.enabled = true;
//					ShardBarFrame.enabled = true;
//					m_isFlag = true;
                }

                //=====显示防护值 如果是多boss,显示并仅显示一个存活boss的防护值
                SMsgPropCreateEntity_SC_Monster showMonster = monster;
                if (m_BossModelDic.Count > 1)
                {
                    var bossModelArray = m_BossModelDic.Values.ToArray();
                    for (int i = 0; i < bossModelArray.Length; i++)
                    {
                        showMonster = (SMsgPropCreateEntity_SC_Monster)bossModelArray[i].EntityDataStruct;
                        if (showMonster.MonsterUnitValues.UNIT_FIELD_CURHP > 0)
                        {
                            break;
                        }
                    }
                }
                MonsterConfigData showMonsterConfig = BattleConfigManager.Instance.MonsterConfigList[showMonster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID];
                int   showBossShard  = showMonster.MonsterUnitValues.UNIT_FIELD_SHARD;
                float showShardValue = 0;
                if (showMonsterConfig.m_shieldpoint == 0)
                {
                    showShardValue = 0;
                }
                else
                {
                    showShardValue = showBossShard / showMonsterConfig.m_shieldpoint;
                }

                //防护值恢复特效
                if (m_previousshardValue == 0 && showBossShard >= showMonsterConfig.m_shieldpoint)
                {
                    if (showMonsterConfig.m_shieldpoint > 0)
                    {
                        StopCoroutine("BreakDefenseTipAppear");
                        BreakDefenseTip.SetActive(false);
                        PlayRecoverProtectionEff();
                    }
                }
                m_previousshardValue = showBossShard;

                //防护值减少动画
                TweenFloat.Begin(0.3f, ShardProgressBar.fillAmount, showShardValue, ChangeShardProgressBar);
                if (IsShowStatusLabel)
                {
                    ShardNumLabel.text = string.Format("{0}/{1}", showBossShard, BattleConfigManager.Instance.MonsterConfigList[showMonster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID].m_shieldpoint);
                }
                else
                {
                    ShardNumLabel.text = "";
                }

                if (showShardValue <= 0)
                {
                    if (showMonsterConfig.m_shieldpoint > 0)                 //防护值最大值为0的怪没有防护
                    {
                        if (!MonsterManager.Instance.IsDoubleBoss)           //双boss血条情况下不显示 可击倒提示
                        {
                            StartCoroutine("BreakDefenseTipAppear", BreakDefenseTipAppearDelay);
                        }
                        PlayerShardEffect(monster.BaseObjectValues.OBJECT_FIELD_ENTRY_ID);
                    }
                }
                else
                {
                    ShardProgressBar.enabled = true;
                    ShardBarFrame.enabled    = true;
                    m_isFlag = true;
                }
            }
        }
    }