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(); }
public void Setup() { Instance = this; }