private void OnTimeDownloaded(TimeLoader timeLoader, DownloadedTimeArgs e) { timeLoader.OnTimeDownloadedEvent -= OnTimeDownloaded; this.gameSessionCurrentTimeData = this.InitGameTimeSessionCurrent(e.downloadedTime); this.CalculateTimeBetweenSessions(this.gameSessionPreviousTimeData, this.gameSessionCurrentTimeData); OnGameTimeInitialized?.Invoke(); }
protected override IEnumerator InitializeRoutine() { TimeLoader timeLoader = new TimeLoader(); timeLoader.OnTimeDownloadedEvent += this.OnTimeDownloaded; yield return(timeLoader.LoadTime()); GameTime.Initialize(this); Logging.Log($"GAME TIME INTERACTOR: Initialized successful. \n{this}"); }