Esempio n. 1
0
    public void Setup(UIHealthBars healthBars, UnitHealth healthSystem)
    {
        HealthBars        = healthBars;
        this.healthSystem = healthSystem;

        healthSystem.OnDamageReceived.AddListener(OnDamageReceived);
        healthSystem.OnDeath.AddListener(OnDeath);

        isVisible = false;
        gameObject.SetActive(false);

        fillImage.fillAmount = 1f;
        fillImage.color      = GetFillColor();
    }
Esempio n. 2
0
 public void Setup()
 {
     Instance = this;
 }