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(); }
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(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { ScoreboardService scoreboardService = new ScoreboardService(); this.ScoreboardList.ItemsSource = scoreboardService.ReadScores(); }
/// <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(); }
private void Awake() { Instance = this; service = new ScoreboardService(); SetEventListeners(); }