// Token: 0x06002626 RID: 9766 RVA: 0x000A5BE6 File Offset: 0x000A3DE6 public virtual void OnExit(MainMenuController mainMenuController) { if (this.myMainMenuController == mainMenuController) { this.myMainMenuController = null; } this.onExit.Invoke(); }
// Token: 0x0600262C RID: 9772 RVA: 0x000A5D4C File Offset: 0x000A3F4C private void Update() { if (this.IsInLobby() && this.currentMenuScreen != this.multiplayerMenuScreen) { this.desiredMenuScreen = this.multiplayerMenuScreen; } if (!MainMenuController.IsMainUserSignedIn() && this.currentMenuScreen != this.EAwarningProfileMenu) { this.desiredMenuScreen = this.profileMenuScreen; } if (this.desiredMenuScreen != this.currentMenuScreen) { this.currentMenuScreen.shouldDisplay = false; if (this.currentMenuScreen.IsReadyToLeave()) { this.currentMenuScreen.OnExit(this); this.currentMenuScreen.gameObject.SetActive(false); this.currentMenuScreen = this.desiredMenuScreen; this.camTransitionTimer = this.camTransitionDuration; this.currentMenuScreen.OnEnter(this); return; } } else { this.camTransitionTimer -= Time.deltaTime; this.cameraTransform.position = Vector3.SmoothDamp(this.cameraTransform.position, this.currentMenuScreen.desiredCameraTransform.position, ref this.camSmoothDampPositionVelocity, this.camTranslationSmoothDampTime); Vector3 eulerAngles = this.cameraTransform.eulerAngles; Vector3 eulerAngles2 = this.currentMenuScreen.desiredCameraTransform.eulerAngles; eulerAngles.x = Mathf.SmoothDampAngle(eulerAngles.x, eulerAngles2.x, ref this.camSmoothDampRotationVelocity.x, this.camRotationSmoothDampTime, float.PositiveInfinity, Time.unscaledDeltaTime); eulerAngles.y = Mathf.SmoothDampAngle(eulerAngles.y, eulerAngles2.y, ref this.camSmoothDampRotationVelocity.y, this.camRotationSmoothDampTime, float.PositiveInfinity, Time.unscaledDeltaTime); eulerAngles.z = Mathf.SmoothDampAngle(eulerAngles.z, eulerAngles2.z, ref this.camSmoothDampRotationVelocity.z, this.camRotationSmoothDampTime, float.PositiveInfinity, Time.unscaledDeltaTime); this.cameraTransform.eulerAngles = eulerAngles; if (this.camTransitionTimer <= 0f) { this.currentMenuScreen.gameObject.SetActive(true); this.currentMenuScreen.shouldDisplay = true; } } }
// Token: 0x0600249C RID: 9372 RVA: 0x000AB7CC File Offset: 0x000A99CC public override void OnExit(MainMenuController mainMenuController) { UnityEngine.Object.Destroy(this.submenuPanelInstance); base.OnExit(mainMenuController); }
// Token: 0x0600249B RID: 9371 RVA: 0x000AB7AC File Offset: 0x000A99AC public override void OnEnter(MainMenuController mainMenuController) { base.OnEnter(mainMenuController); this.submenuPanelInstance = UnityEngine.Object.Instantiate <GameObject>(this.submenuPanelPrefab, base.transform); }
// Token: 0x06002625 RID: 9765 RVA: 0x000A5BD2 File Offset: 0x000A3DD2 public virtual void OnEnter(MainMenuController mainMenuController) { this.myMainMenuController = mainMenuController; this.onEnter.Invoke(); }