Пример #1
0
        private void OnTimeDownloaded(TimeLoader timeLoader, DownloadedTimeArgs e)
        {
            timeLoader.OnTimeDownloadedEvent -= OnTimeDownloaded;

            this.gameSessionCurrentTimeData = this.InitGameTimeSessionCurrent(e.downloadedTime);
            this.CalculateTimeBetweenSessions(this.gameSessionPreviousTimeData, this.gameSessionCurrentTimeData);
            OnGameTimeInitialized?.Invoke();
        }
Пример #2
0
        private void NotifyAboutDownloadedTime(DateTime downloadedTime, bool error, string errorText, bool downloadedFromServer)
        {
            DownloadedTimeArgs downloadedTimeArgs = new DownloadedTimeArgs(downloadedTime, error, errorText, downloadedFromServer);

            OnTimeDownloadedEvent?.Invoke(this, downloadedTimeArgs);
        }