Exemplo n.º 1
0
        private void Init()
        {
            GameManager instanceDirect = MonoSingleton <GameManager> .GetInstanceDirect();

            GameManager gameManager;

            if (Object.op_Inequality((Object)instanceDirect, (Object)null))
            {
                Object.DestroyImmediate((Object)instanceDirect);
                gameManager = (GameManager)null;
            }
            CriticalSection.ForceReset();
            SRPG_TouchInputModule.UnlockInput(true);
            PunMonoSingleton <MyPhoton> .Instance.Disconnect();

            UIUtility.PopCanvasAll();
            AssetManager.UnloadAll();
            AssetDownloader.Reset();
            AssetDownloader.ResetTextSetting();
            Network.Reset();
            gameManager = MonoSingleton <GameManager> .Instance;
            GameUtility.ForceSetDefaultSleepSetting();
            if (GameUtility.IsStripBuild)
            {
                GameUtility.Config_UseAssetBundles.Value = true;
            }
            LocalizedText.UnloadAllTables();
        }
Exemplo n.º 2
0
        public void OnColoRankModify()
        {
            CriticalSection.Leave(CriticalSections.SceneChange);
            string errMsg = Network.ErrMsg;

            Network.RemoveAPI();
            Network.ResetError();
            SRPG_TouchInputModule.LockInput();
            UIUtility.SystemMessage((string)null, errMsg, (UIUtility.DialogResultEvent)(go =>
            {
                SRPG_TouchInputModule.UnlockInput(false);
                ((Behaviour)this).set_enabled(false);
                this.ActivateOutputLinks(6);
            }), (GameObject)null, true, -1);
        }
 private void Play(string fileName)
 {
     ((Behaviour)this).set_enabled(true);
     this.hBGMVolume = new MySound.VolumeHandle(MySound.EType.BGM);
     this.hBGMVolume.SetVolume(0.0f, 0.0f);
     this.hVoiceVolume = new MySound.VolumeHandle(MySound.EType.VOICE);
     this.hVoiceVolume.SetVolume(0.0f, 0.0f);
     if (this.AutoFade)
     {
         SRPG_TouchInputModule.LockInput();
         CriticalSection.Enter(CriticalSections.Default);
         FadeController.Instance.FadeTo(this.FadeColor, 1f, 0);
         this.StartCoroutine(this.PlayDelayed(fileName, new StreamingMovie.OnFinished(this.OnFinished)));
     }
     else
     {
         MonoSingleton <StreamingMovie> .Instance.Play(fileName, new StreamingMovie.OnFinished(this.OnFinished), (string)null);
     }
 }
Exemplo n.º 4
0
 public void Finished(bool is_replay = false)
 {
     if (this.hBGMVolume != null)
     {
         this.hBGMVolume.Discard();
         this.hBGMVolume = (MySound.VolumeHandle)null;
     }
     if (this.hVoiceVolume != null)
     {
         this.hVoiceVolume.Discard();
         this.hVoiceVolume = (MySound.VolumeHandle)null;
     }
     if (this.AutoFade)
     {
         SRPG_TouchInputModule.UnlockInput(false);
         CriticalSection.Leave(CriticalSections.Default);
         FadeController.Instance.FadeTo(Color.get_clear(), this.FadeTime, 0);
     }
     this.ActivateNext();
 }
Exemplo n.º 5
0
        private void PlayMovie(string filename)
        {
            this.hBGMVolume = new MySound.VolumeHandle(MySound.EType.BGM);
            this.hBGMVolume.SetVolume(0.0f, 0.0f);
            this.hVoiceVolume = new MySound.VolumeHandle(MySound.EType.VOICE);
            this.hVoiceVolume.SetVolume(0.0f, 0.0f);
            if (this.AutoFade)
            {
                SRPG_TouchInputModule.LockInput();
                CriticalSection.Enter(CriticalSections.Default);
                FadeController.Instance.FadeTo(this.FadeColor, this.FadeTime, 0);
                this.PlayFilename = filename;
            }
            else
            {
                MonoSingleton <StreamingMovie> .Instance.Play(filename, new StreamingMovie.OnFinished(this.Finished), "UI/FullScreenMovieDemo");

                this.Played = true;
            }
        }
Exemplo n.º 6
0
 private void EndIdle()
 {
     SRPG_TouchInputModule.LockInput();
 }
Exemplo n.º 7
0
 private void StartIdle()
 {
     this.is_busy = false;
     SRPG_TouchInputModule.UnlockInput(false);
 }