public override void AddCharactorAttr() { CharactorBaseAttr baseAttr = FactoryManager.AttrFactory.GetCharactorBaseAttr(mT); mPrefabName = baseAttr.PrefabName; ICharacterAttr attr = new SoldierAttr(new SoldierAttrStrategy(), mLv, baseAttr); mCharacter.Attr = attr; }
public SoldierCaptive(IEnemy enemy) { mEnemy = enemy; ICharacterAttr attr = new SoldierAttr(enemy.Attr.AttrStrategy, 1, enemy.Attr.BaseAttr); this.Attr = attr; this.CGameObject = enemy.CGameObject; this.Weapon = enemy.Weapon; }