public GameContext(int round) { var gameSetting = new GameSettingService().GetSetting(); Round = round; Attendees = gameSetting.Attendees; Rule = gameSetting.Rule; ShuffleSvc = new ShuffleService(); }
// Use this for initialization public void OnSave() { var setting = GameSettingService.CurrentGameSetting; setting.Volume = (int)sliderVolume.value; setting.Push = togglePush.isOn; GameSettingService.SaveGameSetting(); Close(); }
public GameContext(int round) { var gameSetting = new GameSettingService().GetSetting(); Round = round; Attendees = gameSetting.Attendees.Where(a => a.Available).ToList(); Rule = gameSetting.Rule; RulesDescription = gameSetting.RulesDescription; GameDescription = gameSetting.GameDescription; ShuffleSvc = new ShuffleService(); }