private IEnumerator Start() { yield return(new WaitForEndOfFrame()); mUIDisplaySwipeEventRegion.SetOnSwipeListener(OnSwipeListener); Instance = this; _isControllDone = false; KeyController = new KeyControl(); UpdateSupplyManager(); _deckName.supportEncoding = false; SupplyManager.InitForOther(); SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(SupplyManager); _decks = SupplyManager.MapArea.GetDecks(); yield return(new WaitForEndOfFrame()); _shipBannerContainer.Init(); _otherListParent.Initialize(KeyController, SupplyManager.Ships); _rightPane.Init(); _commonDeckSwitchManager.Init(SupplyManager, (from x in _decks where !x.HasBling() select x).ToArray(), this, KeyController, otherEnabled: true, SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck); yield return(StartCoroutine(Util.WaitEndOfFrames(3))); if (SingletonMonoBehaviour <PortObjectManager> .Instance != null) { SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate { SoundUtils.PlaySceneBGM(BGMFileInfos.PortTools); }); } }
private IEnumerator Start() { yield return(new WaitForEndOfFrame()); mKeyController = new KeyControl(); mKeyController.IsRun = false; mUIDisplaySwipeEventRegion.SetEventCatchCamera(mCamera_TouchEventCatch); mUIDisplaySwipeEventRegion.SetOnSwipeListener(OnSwipeDeckListener); mUIRemodeModernizationShipTargetListParentNew.SetCamera(mCamera_TouchEventCatch); mUIRemodelEquipListParent.SetSwipeEventCatchCamera(mCamera_TouchEventCatch); mUIRemodelOtherShipPickerParent.SetSwipeEventCamera(mCamera_TouchEventCatch); int areaId = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID; mRemodelManager = new RemodelManager(areaId); yield return(new WaitForEndOfFrame()); DeckModel[] decks = mRemodelManager.UserInfo.GetDecksFromArea(areaId); UpdateHeaderMaterial(); yield return(new WaitForEndOfFrame()); yield return(StartCoroutine(InitViewsCoroutine(decks))); yield return(new WaitForEndOfFrame()); AudioClip sceneBgm = SoundFile.LoadBGM(BGMFileInfos.PortTools); yield return(new WaitForEndOfFrame()); if (SingletonMonoBehaviour <PortObjectManager> .exist()) { SoundUtils.SwitchBGM(sceneBgm); SingletonMonoBehaviour <UIPortFrame> .Instance.setVisibleHeader(isVisible : false); SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(mRemodelManager); SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null); mKeyController.IsRun = true; } }
private void Awake() { mUIDisplaySwipeEventRegion.SetOnSwipeListener(OnSwipeEventListener); }