コード例 #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
        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}");
        }