private void Update() { CashValue.Set(Service.CashValue); StockCount.Set(Service.StockCount); StockValue.Set(Service.StockValue); TotalValue.Set(Service.TotalValue); BidPrice.Set(Service.BidPrice); AskPrice.Set(Service.AskPrice); CanBuy.Set(Service.CanBuy); CanSell.Set(Service.CanSell); High.Set(Service.High); Low.Set(Service.Low); HighVolume.Set(Service.HighVolume); LowVolume.Set(Service.LowVolume); PeriodRemaining.Set(Service.PeriodRemaining); Period.Set(Service.Period); }
public void LoadFromPlayerPrefs() { if (PlayerPrefs.HasKey(CreateSampleLabyrinthsString)) { CreateSampleLabyrinths.Set(PlayerPrefs.GetInt(CreateSampleLabyrinthsString) == 1, notify: false); } if (PlayerPrefs.HasKey(PredefinedLevelOrderString)) { IsLevelOrderPredefined.Set(PlayerPrefs.GetInt(PredefinedLevelOrderString) == 1, notify: false); } if (PlayerPrefs.HasKey(NumberOfRoundsString)) { NumberOfRounds.Set(PlayerPrefs.GetInt(NumberOfRoundsString), notify: false); } }