Пример #1
0
        public override void UpdateAttributes()
        {
            PlayerAttrBase tmpPlayerAttrBase = PlayerAttrBaseManager.instance.Find(UnitID, Level);

            if (null != tmpPlayerAttrBase)
            {
                mUnitAttr.Init(tmpPlayerAttrBase);
            }
        }
Пример #2
0
 public void Init(PlayerAttrBase playerAttr)
 {
     mType2ValueDcit[EPA.CurHP]     = playerAttr.MaxHp;
     mType2ValueDcit[EPA.MaxHP]     = playerAttr.MaxHp;
     mType2ValueDcit[EPA.HPRestore] = playerAttr.HpRestore;
     mType2ValueDcit[EPA.CurMP]     = playerAttr.MaxMp;
     mType2ValueDcit[EPA.MaxMP]     = playerAttr.MaxMp;
     mType2ValueDcit[EPA.MPRestore] = playerAttr.MpRestore;
     mType2ValueDcit[EPA.CurDP]     = playerAttr.MaxDp;
     mType2ValueDcit[EPA.MaxDP]     = playerAttr.MaxDp;
     mType2ValueDcit[EPA.DPRestore] = playerAttr.DpRestore;
     mType2ValueDcit[EPA.Attack]    = playerAttr.Attack;
     mType2ValueDcit[EPA.DpAttack]  = playerAttr.DpAttack;
     mType2ValueDcit[EPA.Defense]   = playerAttr.Defense;
     mType2ValueDcit[EPA.MoveSpeed] = playerAttr.Speed;
 }