private void DrawQuartalBar() { if (!gameObject.activeInHierarchy) { return; } // draw revenue/ expences for the last 3 months StartCoroutine(barfillerQuartal.IncreaseOverTime(barfillerQuartal.healingBar, finances.GetQuarterRevenue(), Mathf.Max(10000, finances.revenue.Max() * 2), isPercentage: false)); // barfillerQuartal.SetValueToBarScalar(finances.GetQuarterRevenue(), barfillerQuartal.healingBar, Mathf.Max(10000, finances.revenue.Max()*2)); StartCoroutine(barfillerQuartal.IncreaseOverTime(barfillerQuartal.toxicityBar, finances.GetQuarterExpences(), Mathf.Max(10000, finances.revenue.Max() * 2), isPercentage: false)); // barfillerQuartal.SetValueToBarScalar(finances.GetQuarterExpences(), barfillerQuartal.toxicityBar, Mathf.Max(10000, finances.revenue.Max()*2)); }
private void DrawMonthBar() { int maxRevenue = 0; FindBestMonth(out maxRevenue); if (!gameObject.activeInHierarchy) { return; } StartCoroutine(barFillerMonth.IncreaseOverTime(barFillerMonth.healingBar, finances.revenue[maxRevenue], Mathf.Max(10000, finances.revenue.Max()), isPercentage: false)); //barFillerMonth.SetValueToBarScalar(finances.revenue[maxRevenue], barFillerMonth.healingBar, Mathf.Max(10000,finances.revenue.Max())); //barFillerMonth.SetValueToBarScalar(finances.staticExpences[maxRevenue], barFillerMonth.toxicityBar, Mathf.Max(10000, finances.revenue.Max())); StartCoroutine(barFillerMonth.IncreaseOverTime(barFillerMonth.toxicityBar, finances.staticExpences[maxRevenue], Mathf.Max(10000, finances.revenue.Max()), isPercentage: false)); }
public void IncreaseHpOverTime(Area area) { StartCoroutine(areaHealthBar.IncreaseOverTime(areaHealthBar.healingBar, area.health, area.maxHealth, false)); StartCoroutine(interpol.ColorIn(areaHealthBar.healingBar, areaHealthBar.healingBar.color, fullHpColor)); }