Ejemplo n.º 1
0
    //public ICharacterAttr(IAttrStrategy strategy,int lv, string name,int maxHP,float moveSpeed,string iconSprite,string prefabName)
    public ICharacterAttr(IAttrStrategy strategy, int lv, CharacterBaseAttr baseAttr)
    {
        mBaseAttr     = baseAttr;
        mLv           = lv;
        mStrategy     = strategy;
        mDmgDescValue = mStrategy.GetDmgDescValue(mLv);
        mCurrentHP    = mBaseAttr.maxHP + mStrategy.GetEXtraHPValue(mLv);

        //mName = name;
        //mMaxHP = maxHP;
        //mMoveSpeed = moveSpeed;
        //mIconSprite = iconSprite;
        //mPrefabName = prefabName;
    }