//Поочерёдное появление звёздочек и сохранение прогресса при победе private IEnumerator Win(int count) { Transform star1 = WinUI.transform.Find("Stars").transform.GetChild(0); Transform star2 = WinUI.transform.Find("Stars").transform.GetChild(1); Transform star3 = WinUI.transform.Find("Stars").transform.GetChild(2); Debug.Log(count); if (LevelSaveData._needSave) { ProgressLoader.SetLevelStars(LevelSaveData._level, count); ProgressLoader.SetUnlockLevelState(LevelSaveData._level + 1); } yield return(new WaitForSeconds(1)); star1.gameObject.SetActive(true); yield return(new WaitForSeconds(1)); if (count > 1) { star2.gameObject.SetActive(true); } yield return(new WaitForSeconds(1)); if (count > 2) { star3.gameObject.SetActive(true); } StopAllCoroutines(); }
public DashboardViewModel() { _morningStarDataService = MorningStarDataService.Instance; _yahooFinanceDataService = YahooFinanceDataService.Instance; ProgressLoader = new ProgressLoader(); AllRatios = new ObservableCollection <FinancialRatio>(); RatiosFinancials = new ObservableCollection <FinancialRatio>(); RatiosCashFlow = new ObservableCollection <FinancialRatio>(); RatiosEfficiency = new ObservableCollection <FinancialRatio>(); RatiosLiquidity = new ObservableCollection <FinancialRatio>(); RatiosProfitability = new ObservableCollection <FinancialRatio>(); IncomeStatement = new ObservableCollection <FinancialRatio>(); BalanceSheet = new ObservableCollection <FinancialRatio>(); CashFlowStatement = new ObservableCollection <FinancialRatio>(); StockData = new ObservableCollection <StockData>(); Country = CountryEnum.Singapore; }
private void Awake() { _loader = FindObjectOfType <ProgressLoader>(); Time.timeScale = 1; }