public static string printRevenueForSecond() { float final_revenue = 0; for (int i = 0; i < 8; i++) { float onlineEarning = Economy.EconomyHelper.GetEarning( PrefManagerSeedy.GetFruitLifeSpan(i), PrefManagerSeedy.GetFruitPrice(i), PrefManagerSeedy.GetfruitCount(i), PrefManagerSeedy.GetonlineCoefficient() /*, * SimpleTimer._instance.getElapsedTimeSeconds()*/); final_revenue += onlineEarning; } return(final_revenue.ToString("0.##")); }
public static string printOfflineEarning() { float final_earning = 0; for (int i = 0; i < 8; i++) { float offlineEarning = Economy.EconomyHelper.GetEarning( PrefManagerSeedy.GetFruitLifeSpan(i), PrefManagerSeedy.GetFruitPrice(i), PrefManagerSeedy.GetfruitCount(i), PrefManagerSeedy.GetofflineCoefficient(), SimpleTimer._instance.getElapsedTimeSeconds()); final_earning += (int)offlineEarning; } return(final_earning.ToString("0")); }