コード例 #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();
        }