/// <summary> /// Called by the framework on updates. /// </summary> private void UpdateHdl() { if (this.currentPhase == ShowPhase.OnlyBackground) { if (UIRoot.Instance.GraphicsPlatform.RenderLoop.TimeSinceStart - this.firstActivationTime > START_TITLE_ANIMATION) { this.currentPhase = ShowPhase.AnimatingTitle; this.titleAnimation.Reset(false); this.titleAnimation.Start(); } } else if (this.currentPhase == ShowPhase.AnimatingTitle) { if (this.titleAnimation.CurrentTimepoint > this.titleAnimation.Duration) { this.currentPhase = ShowPhase.Loading; this.titleAnimation.Stop(); UIRoot.Instance.GraphicsPlatform.RenderLoop.FrameUpdate -= this.UpdateHdl; this.loadingTask = UIResourceManager.LoadResourceGroupAsync("RC.App.CommonResources"); this.loadingTask.Finished += this.LoadingFinished; this.loadingTask.Failed += this.LoadingFailed; } } }