public void Init() { life = classe.BaseLife + specie.LifeBoost; damage = classe.BaseDamage + specie.DamageBoost; maxLife = life; lifeSlider.InitValue(life); }
private void UpdateUnitMenu() { LifeSlider slider = CharacterInfoPanel.GetComponentInChildren <LifeSlider>(); slider.InitValue(currentUnit.maxLife); slider.UpdateValue(currentUnit.life); CharacterInfoPanel.GetComponentsInChildren <Text>()[1].text = currentUnit.classe.Name == ClasseTypes.ARCHER ? "Archer" : "Guerrier"; CharacterInfoPanel.GetComponentsInChildren <Text>()[2].text = "Alliés : " + teamManager.GetAliveUnitsForCurrentTeam(); CharacterInfoPanel.GetComponentsInChildren <Text>()[3].text = "Ennemies : " + teamManager.GetAliveUnitsForOpponenetTeam(); }