Beispiel #1
0
 public void finishMovie()
 {
     m_TitleMovie.m_bPlayMovie = false;
     if (m_ScrMedia.GetCurrentState() != MediaPlayerCtrl.MEDIAPLAYER_STATE.END)
     {
         m_ScrMedia.Stop();
     }
     m_ScrMedia.DeleteVideoTexture();
     if (m_clear == true)
     {
         UnityUtil.SetObjectEnabledOnce(gameObject, false);
         if (m_destroy == true)
         {
             Destroy(gameObject);
         }
     }
     else
     {
         UnityUtil.SetObjectEnabled(m_kabe, true);
     }
     if (m_bgmid != BGMManager.EBGM_ID.eBGM_INIT)
     {
         SoundUtil.PlayBGM(m_bgmid, false);
     }
 }
Beispiel #2
0
    IEnumerator OnGoTutorialHeroSelect()
    {
        DestroyStoryView();
        yield return(null);

        yield return(Resources.UnloadUnusedAssets());

        yield return(null);

        //メニューBGM再生開始
        SoundUtil.PlayBGM(BGMManager.EBGM_ID.eBGM_2_1, false);

        yield return(WaitForPageWaitLoop(MAINMENU_SEQ.SEQ_TUTORIAL_HERO_SELECT));
    }
Beispiel #3
0
    void OnSwitchPart()
    {
        TutorialPart part = GetNextTutorialPart();

#if UNITY_EDITOR && BUILD_TYPE_DEBUG
        Debug.Log("CALL TutorialManager#OnSwitchPart:" + part);

        DebugOption.Instance.tutorialDO.forceTutorialPart = TutorialPart.NONE;
#endif
        //メニューBGM再生
        switch (part)
        {
        case TutorialPart.BUILDUP:
        case TutorialPart.EDIT:
        case TutorialPart.NORMAL02:
            SoundUtil.PlayBGM(BGMManager.EBGM_ID.eBGM_2_1, false);
            break;
        }

        TutorialFSM.Instance.SendFsmEvent(part.ToString());
    }
Beispiel #4
0
    /// <summary>
    /// WebView終了処理
    /// </summary>
    void WebViewEnd()
    {
        // 止めていたBGMの再生
        if (m_TmpPrevPlayDatas != null && m_ReturnableBGM)
        {
            foreach (BGMPlayData playData in m_TmpPrevPlayDatas)
            {
                SoundUtil.PlayBGM(playData);
            }
        }

        if (lastDialog != null)
        {
            lastDialog.SetActive(true);
            lastDialog = null;
        }

#if UNITY_EDITOR_OSX
        //MacでWebを表示すると固まるのでスキップ
#elif UNITY_IOS || UNITY_ANDROID || UNITY_WP8
        m_WebView.Hide();
        m_WebView.CleanCache();
#endif

        if (m_CloseAction != null)
        {
            m_CloseAction();
        }

        DestroyObject(gameObject);

        if (m_WebViewFixID != 0)
        {
            MainMenuWebViewShowChk.SetViewCheck(m_WebViewFixID, true);
        }
        m_WebViewOpen = false;
    }