private IEnumerator Start()
        {
            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Reset();
            stopWatch.Start();
            yield return(new WaitForEndOfFrame());

            mStateManager          = new StateManager <State>(State.NONE);
            mStateManager.OnPop    = OnPopState;
            mStateManager.OnPush   = OnPushState;
            mStateManager.OnResume = OnResumeState;
            mStateManager.OnSwitch = OnSwitchState;
            mUserInterfaceInteriorChangeManager.SetOnRequestMoveToFurnitureStoreListener(OnRequestMoveFurnitureStore);
            if (SingletonMonoBehaviour <UIPortFrame> .exist())
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.gameObject.SetActive(false);
            }
            mKeyController = new KeyControl();
            AudioClip sceneBGM = SoundFile.LoadBGM((BGMFileInfos)104);

            stopWatch.Stop();
            for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++)
            {
                yield return(new WaitForEndOfFrame());
            }
            SoundUtils.SwitchBGM(sceneBGM);
            SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(null);

            mStateManager.PushState(State.InteriorChange);
        }
예제 #2
0
    public AudioSource GeneratePlayJukeAudioSource(BGMFileInfos file)
    {
        AudioClip clip = SoundFile.LoadBGM(file);

        this._clsBGMObserver.source.set_clip(clip);
        return(this._clsBGMObserver.source);
    }
예제 #3
0
    public AudioSource GeneratePlayJukeAudioSource(BGMFileInfos file)
    {
        AudioClip clip = SoundFile.LoadBGM(file);

        _clsBGMObserver.source.clip = clip;
        return(_clsBGMObserver.source);
    }
예제 #4
0
        private IEnumerator Start()
        {
            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Reset();
            stopWatch.Start();
            yield return(new WaitForEndOfFrame());

            mDutyManager = new DutyManager();
            SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(mDutyManager);

            mDutyGrid.SetOnSummarySelectedCallBack(UIDutySummaryEventCallBack);
            mDutyGrid.SetOnChangePageListener(OnChangePageDutyGrid);
            DutyModel[] duties = GetDuties();
            mDutyGrid.Initialize(duties);
            SoundFile.LoadBGM(BGMFileInfos.PortTools);
            _DeteilMode = false;
            if (duties.Length <= 0)
            {
                mDutyGrid.GoToPage(0, focus: false);
                mTransform_AllClearText.SetActive(isActive: true);
                UpdateOrderPossibleDutyCount(0, animate: false);
                KeyControl nextKeyController = mDutyGrid.GetKeyController();
                mDutyGrid.FirstFocus();
                ChangeKeyController(nextKeyController);
                stopWatch.Stop();
            }
            else
            {
                int orderDutyCount = mDutyManager.MaxExecuteCount - mDutyManager.GetExecutedDutyList().Count;
                UpdateOrderPossibleDutyCount(orderDutyCount, animate: false);
                KeyControl greetingOhyodoKeyController = new KeyControl();
                ChangeKeyController(greetingOhyodoKeyController);
                mDutyGrid.GoToPage(0, focus: false);
                stopWatch.Stop();
                for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++)
                {
                    yield return(new WaitForEndOfFrame());
                }
                yield return(new WaitForEndOfFrame());

                StartCoroutine(GreetingOhyodo(greetingOhyodoKeyController, delegate
                {
                    KeyControl keyController = this.mDutyGrid.GetKeyController();
                    this.ChangeKeyController(keyController);
                }));
                mDutyGrid.FirstFocus();
            }
            SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate
            {
                var preloadBGM = SoundFile.LoadBGM(BGMFileInfos.PortTools);
                SoundUtils.SwitchBGM(preloadBGM);
            });
        }
예제 #5
0
        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 IEnumerator Start()
    {
        UserInterfacePortManager.ReleaseUtils.OverwriteCheck();
        mStartAt = GetStartAt();
        Stopwatch stopWatch = new Stopwatch();

        stopWatch.Reset();
        stopWatch.Start();
        SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
        mKeyController           = new KeyControl();
        mAudioClip_SE002         = SoundFile.LoadSE(SEFIleInfos.SE_002);
        mAudioClip_CommonCancel1 = SoundFile.LoadSE(SEFIleInfos.CommonCancel1);
        mUIItemListManager.SetOnBackListener(OnItemListBack);
        mUIItemListManager.SetOnSwitchItemStoreListener(OnSwitchToItemStore);
        mUIItemListManager.SetKeyController(null);
        mUIItemStoreManager.SetOnBackListener(OnItemStoreBackListener);
        mUIItemStoreManager.SetOnSwitchItemListListener(OnSwitchToItemList);
        mUIItemStoreManager.SetKeyController(null);
        mUIItemAkashi.SetOnHiddenCallBack(OnAkashiHidenListener);
        int bgmId = 101;

        switch (mStartAt)
        {
        case StartAt.ItemList:
            mUIItemListManager.SetActive(isActive: true);
            mUIItemStoreManager.SetActive(isActive: false);
            mTransform_SwitchViewRoot.transform.localPosition = new Vector3(0f, 0f, 0f);
            bgmId = itemListManager.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID);
            mUIItemListManager.Initialize(itemListManager);
            if (SingletonMonoBehaviour <UIPortFrame> .exist())
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(itemListManager);
            }
            break;

        case StartAt.ItemStore:
            mUIItemListManager.SetActive(isActive: false);
            mUIItemStoreManager.SetActive(isActive: true);
            mTransform_SwitchViewRoot.transform.localPosition = new Vector3(-960f, 0f, 0f);
            bgmId = itemStoreManager.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID);
            mUIItemStoreManager.Initialize(itemStoreManager);
            if (SingletonMonoBehaviour <UIPortFrame> .exist())
            {
                SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(itemStoreManager);
            }
            break;
        }
        mAudioClip_SceneBGM = SoundFile.LoadBGM((BGMFileInfos)bgmId);
        stopWatch.Stop();
        if (RetentionData.GetData() != null)
        {
            RetentionData.GetData().Clear();
        }
        for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++)
        {
            yield return(new WaitForEndOfFrame());
        }
        SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate
        {
            SoundUtils.PlayBGM(this.mAudioClip_SceneBGM, isLoop: true);
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
            this.mUIItemAkashi.SetKeyController(this.mKeyController);
            this.mUIItemAkashi.Show();
            this.mUIItemAkashi.SetClickable(clickable: true);
            this.DelayAction(0.2f, delegate
            {
                ShipUtils.PlayPortVoice(4);
            });
            this.ChangeState(State.Akashi, popStack: false);
        });
    }
예제 #7
0
        private IEnumerator Start()
        {
            yield return(new WaitForEndOfFrame());

            Stopwatch stopWatch = new Stopwatch();

            stopWatch.Reset();
            stopWatch.Start();
            _isTop       = true;
            _isAnimation = false;
            SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false;
            mAreaId        = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID;
            mDeckId        = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id;
            mRevampManager = new RevampManager(mAreaId, mDeckId);
            mRevampManager.GetRecipes();
            InitializeAkashi();
            mRevampMaterialsInfo.Initialize(mRevampManager);
            mAudioClip_BGM = SoundFile.LoadBGM((BGMFileInfos)206);
            mAudioClip_303 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 303);

            mAudioClip_304 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 304);

            mAudioClip_305 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 305);

            mAudioClip_308 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 308);

            mAudioClip_309 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 309);

            mAudioClip_313 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 313);

            mAudioClip_SE_021 = SoundFile.LoadSE(SEFIleInfos.SE_021);
            mAudioClip_SE_022 = SoundFile.LoadSE(SEFIleInfos.SE_022);
            mAudioClip_SE_017 = SoundFile.LoadSE(SEFIleInfos.SE_017);
            mAudioClip_SE_020 = SoundFile.LoadSE(SEFIleInfos.SE_020);
            mAudioClip_SE_002 = SoundFile.LoadSE(SEFIleInfos.SE_002);
            mAudioClip_SE_023 = SoundFile.LoadSE(SEFIleInfos.SE_023);
            int random = UnityEngine.Random.Range(0, 100);

            if (70 < random)
            {
                SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 301);
            }
            else
            {
                SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 302);
            }
            SingletonMonoBehaviour <PortObjectManager> .Instance.OverwriteSceneObject(base.transform.gameObject);

            stopWatch.Stop();
            for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++)
            {
                yield return(new WaitForEndOfFrame());
            }
            KeyControl nextKeyController = ShowUIRevampRecipeList(0);

            SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate
            {
                SingletonMonoBehaviour <SoundManager> .Instance.SwitchBGM(this.mAudioClip_BGM);
                this.PlayAkashiVoice(mAudioClip_303);
            });

            ChangeFocusKeyController(nextKeyController);
            mRevampMaterialsInfo.Show();
            UpdateInfo(mRevampManager);
        }
예제 #8
0
 public AudioSource SwitchBGM(BGMFileInfos file)
 {
     return(SwitchBGM(SoundFile.LoadBGM(file), isLoop: true));
 }
예제 #9
0
 public AudioSource PlayBGM(BGMFileInfos file, bool isLoop)
 {
     return(PlayBGM(SoundFile.LoadBGM(file), isLoop));
 }
예제 #10
0
 public AudioSource SwitchBGM(BGMFileInfos file)
 {
     return(this.SwitchBGM(SoundFile.LoadBGM(file), true));
 }
예제 #11
0
 public static AudioClip PreloadBGMFile(BGMFileInfos iInfos)
 {
     return(SoundFile.LoadBGM(iInfos));
 }