Example #1
0
                } // end ReloadEquip

                private void Freshen(CenterEvent type)
                {
                    if (CenterEvent.ReloadEquip != type)
                    {
                        return;
                    }
                    // end if
                    Freshen();
                } // end Freshen
                } // end MainCharacterInfo

                private void CheckAttributeData(CenterEvent type)
                {
                    if (CenterEvent.BuffChange != type && CenterEvent.ReloadEquip != type)
                    {
                        return;
                    }
                    // end if
                    m_charcterData.Init(initArribute);
                    for (int i = 0; i < ConstConfig.EquipTypeList.Length; i++)   // 累加所有已穿戴的装备的属性
                    {
                        IEquipInfo info = mainCharacter.pack.GetWearInfo().GetEquipInfo(ConstConfig.EquipTypeList[i]);
                        if (null == info)
                        {
                            continue;
                        }
                        // end if
                        m_charcterData.Plus(info);
                    } // end for
                }     // end CheckAttributeData
Example #3
0
            } // end RemoveListener

            public void Broadcast(CenterEvent content) {
                if (null == m_action) return;
                // end if
                m_action(content);
            } // end Broadcast
Example #4
0
                } // end Update

                private void CheckAttributeData(CenterEvent type) {
                    if (CenterEvent.BuffChange != type && CenterEvent.ReloadEquip != type) return;
                    // end if
                    m_charcterData.Init(initArribute);
                } // end CheckAttributeData