Exemplo n.º 1
0
 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));
 }