public Score(ScoreboardService rest, string player, long value)
 {
     _rest = rest;
     StoredData = new ScoreData();
     StoredData.Player = player;
     StoredData.Value = value;
     StoredData.Platform = Application.platform.ToString().ToUpper();
     StoredData.GameSessionGUID = Guid.NewGuid().ToString().ToUpper();
 }
Example #2
0
        private void Awake()
        {
            scoreboard = new Scoreboard();
            service    = new ScoreboardService();

            if (Transporter.Instance != null && Transporter.Instance.IsUpdate)
            {
                LoadScoreData(Transporter.Instance.ScoreboardId);
            }

            headerText.text = (isUpdate ? "Update Score" : "Register New Score");

            BindEvents();
        }
Example #3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ScoreboardService scoreboardService = new ScoreboardService();

            this.ScoreboardList.ItemsSource = scoreboardService.ReadScores();
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimerLogic"/> class.
 /// </summary>
 /// <param name="timer">Timer Model.</param>
 /// <param name="game">Game Model.</param>
 public TimerLogic(TimerModel timer, GameModel game)
 {
     this.timer             = timer;
     this.game              = game;
     this.scoreboardService = new ScoreboardService();
 }
Example #5
0
 private void Awake()
 {
     Instance = this;
     service  = new ScoreboardService();
     SetEventListeners();
 }