Exemplo n.º 1
0
        public GameContext(int round)
        {
            var gameSetting = new GameSettingService().GetSetting();

            Round      = round;
            Attendees  = gameSetting.Attendees;
            Rule       = gameSetting.Rule;
            ShuffleSvc = new ShuffleService();
        }
Exemplo n.º 2
0
    // Use this for initialization
    public void OnSave()
    {
        var setting = GameSettingService.CurrentGameSetting;

        setting.Volume = (int)sliderVolume.value;
        setting.Push   = togglePush.isOn;

        GameSettingService.SaveGameSetting();

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