public void SetupCurrentCharacter() { Dame.RemoveAllModifiers(); Power.RemoveAllModifiers(); HP.RemoveAllModifiers(); ICharacterManager characterManager = DIContainer.GetModule <ICharacterManager>(); curCharacter = characterManager.GetCurrentCharacter(); ITalentManager talent = DIContainer.GetModule <ITalentManager>(); List <Talent> talentList = talent.GetAllTalent(); foreach (Talent _talent in talentList) { _talent.AddTalent(this); } IItemManager itemEquips = DIContainer.GetModule <IItemManager>(); List <Item> items = itemEquips.EquipmentItemList(); foreach (Item item in items) { item.Equip(this); } // Thay doi lai base value cua hero Dame.BaseValue = 10 + (float)0.2 * (curCharacter.level + 1); Power.BaseValue = 10 + (float)0.2 * (curCharacter.level + 1); HP.BaseValue = 10 + (float)0.2 * (curCharacter.level + 1); }
public void SetupData() { talentManager = DIContainer.GetModule <ITalentManager>(); int i = 0; foreach (KeyValuePair <string, Talent> ele1 in talentManager.GetTalentDictionary()) { talentSlots[i].TALENT = ele1.Value; i++; } }
public void ResetEquipDataStat() { Dame.RemoveAllModifiers(); Power.RemoveAllModifiers(); HP.RemoveAllModifiers(); ITalentManager talent = DIContainer.GetModule <ITalentManager>(); List <Talent> talentList = talent.GetAllTalent(); foreach (Talent _talent in talentList) { _talent.AddTalent(this); } }