private void OnDestroy() { mStateManager = null; mUIShipCharacter = null; mUserInterfacePortInteriorManager = null; mUserInterfacePortMenuManager = null; mBlur_Camera = null; if ((UnityEngine.Object)mParticleSystem_MarriagePetal != null) { mParticleSystem_MarriagePetal.Stop(); } mParticleSystem_MarriagePetal = null; mTransform_LayerPort = null; mTransform_LayerOverlay = null; mUIInteriorFurniturePreviewWaiter = null; mUIPortCameraControlMode = null; mCamera_Overlay = null; mCamera_MenuCamera = null; mUserInterfaceOptionManager = null; mCommonDialog = null; mUIMarriageConfirm = null; mUserInterfaceJukeBoxManager = null; mPortManager = null; mDeckModel = null; mKeyController = null; TutorialInstantiate = null; }
public void ExitMode() { key = null; characterSlideCollider.enabled = false; Vector3 enterPosition = character.getEnterPosition(); float x = enterPosition.x; Vector3 localPosition = character.transform.localPosition; if (x == localPosition.x) { bool flag = MenuCamera.gameObject.transform.localPosition == Vector3.zero && MenuCamera.orthographicSize == 1f; bool flag2 = InteriorCamera.gameObject.transform.localPosition == Vector3.zero && InteriorCamera.orthographicSize == 1f; if (flag && flag2) { OnFinishedExitMode(); return; } } StrategyShipCharacter strategyShipCharacter = character; Vector3 enterPosition2 = character.getEnterPosition(); strategyShipCharacter.moveCharacterX(enterPosition2.x, 0.5f, OnFinishedExitMode); Util.MoveTo(MenuCamera.gameObject, 0.5f, Vector3.zero, iTween.EaseType.easeOutQuad); Util.MoveTo(InteriorCamera.gameObject, 0.5f, Vector3.zero, iTween.EaseType.easeOutQuad); TweenScale.Begin(character.gameObject, 0.5f, new Vector3(1.1f, 1.1f, 1.1f)); iTween.ValueTo(base.gameObject, iTween.Hash("onupdate", "CameraResetUpdate", "time", 0.5f, "from", MenuCamera.orthographicSize, "to", 1)); }
private void OnDestroy() { this.MenuCamera = null; this.InteriorCamera = null; this.character = null; this.key = null; this.mOnFinishedModeListener = null; }
private void OnDestroy() { MenuCamera = null; InteriorCamera = null; character = null; key = null; mOnFinishedModeListener = null; }
private void ChangeCharactertoEscortFlagShip() { StrategyShipCharacter Character = StrategyTopTaskManager.Instance.UIModel.Character; ShipModel FlagShip = EscortOrganizeTaskManager.GetEscortManager().EditDeck.GetFlagShip(); bool flag = this.EscortFlagShipModel == null || this.EscortFlagShipModel != FlagShip; float fromAlpha = 0f; UIPanel component = base.get_gameObject().GetComponent <UIPanel>(); if (component != null) { fromAlpha = component.alpha; } base.get_gameObject().GetComponent <TweenAlpha>().onFinished.Clear(); if (Character.isEnter && flag) { Character.Exit(delegate { this.EnterEscortFlagShip(Character, FlagShip); }, true); this.PanelShowCor = this.DelayAction(0.3f, delegate { this.get_gameObject().SafeGetTweenAlpha(fromAlpha, 1f, 0.3f, 0f, UITweener.Method.Linear, UITweener.Style.Once, null, string.Empty); this.get_gameObject().GetComponent <TweenAlpha>().onFinished.Clear(); this.DelayAction(0.1f, delegate { this.keyController.IsRun = true; }); this.PanelShowCor = null; }); } else { this.EnterEscortFlagShip(Character, FlagShip); base.get_gameObject().SafeGetTweenAlpha(fromAlpha, 1f, 0.3f, 0f, UITweener.Method.Linear, UITweener.Style.Once, null, string.Empty); base.get_gameObject().GetComponent <TweenAlpha>().onFinished.Clear(); this.DelayAction(0.1f, delegate { this.keyController.IsRun = true; }); } }
private void EnterEscortFlagShip(StrategyShipCharacter Character, ShipModel FlagShip) { if (FlagShip != null) { Character.ChangeCharacter(FlagShip); this.DelayActionFrame(2, delegate { if (EscortFlagShipModel != FlagShip) { isPlayVoice = false; } Character.Enter(delegate { if (!isPlayVoice) { Character.PlayVoice(EscortOrganizeTaskManager.GetEscortManager().EditDeck); EscortFlagShipModel = FlagShip; isPlayVoice = true; } }); }); } }