#pragma warning restore 0649 public void Initialize(Monster monster) { if (monster.Type == MonsterType.ATTACK) { AtkShield.SetActive(true); DefShield.SetActive(false); ImagesFillers.AddMonsterHead(atkHead, monster.MonsterName); } else { AtkShield.SetActive(false); DefShield.SetActive(true); ImagesFillers.AddMonsterHead(defHead, monster.MonsterName); } Stats.SetActive(true); MonsterPowers powers = monster.GetPowers(); LanguagesFillers.FillMonsterPersonalStats(PersonalStats, TypeTitle, SubTypeTitle, SawTitle, CatchTitle, ToEvolveTitle); LanguagesFillers.FillAtkDefMonsterCombatStats(CombatStats, AttackTitle, AtkBaseTitle, AtkLevelTitle, DefenseTitle, DefBase, DefLevelTitle, HealthTitle, HpBaseTitle, HpLevelTitle); TypeValue.text = monster.Type.ToString(); SubTypeValue.text = monster.SubType.ToString(); ToEvolveValue.text = monster.Stats.CatchesToEvolve + " " + LanguagesFillers.Lang.ToCatch; AtkBaseValue.text = powers.AttackPower.Base.ToString(); AtkLevelValue.text = powers.AttackPower.LevelAttack.ToString(); DefBaseValue.text = powers.DefensePower.Base.ToString(); DefLevelValue.text = powers.DefensePower.LevelDefense.ToString(); HpBaseValue.text = powers.HealthPower.BaseHp.ToString(); HpLevelValue.text = powers.HealthPower.LevelHp.ToString(); }
private void OnEnable() { CheckTutorial(); string monsterName = monster.MonsterName + "\n" + LanguagesFillers.Lang.Level + " " + monster.Stats.Level; headerManager.Initialize(AbilityType.NONE, monsterName); IsAdded = GameManager.Instance.CurrentPlayer.Squadron.IsMonsterInSquadron(monster); LanguagesFillers.FillAddToSquadButtonState(addBtnText, IsAdded); ImagesFillers.AddMonsterMenubackground(background, monster.Type); if (monster.Type == MonsterType.SABOTAGE) { sabotage.Initialize(monster); AtkDefStats.SetActive(false); AtkShield.SetActive(false); DefShield.SetActive(false); } else { attackDefense.Initialize(monster); SabStats.SetActive(false); SabShield.SetActive(false); } }