示例#1
0
 public void Init()
 {
     life    = classe.BaseLife + specie.LifeBoost;
     damage  = classe.BaseDamage + specie.DamageBoost;
     maxLife = life;
     lifeSlider.InitValue(life);
 }
示例#2
0
    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();
    }