Esempio n. 1
0
        public static void StaticReset()
        {
            Camera[] allCameras = Camera.allCameras;
            int      i          = 0;
            int      num        = allCameras.Length;

            while (i < num)
            {
                allCameras[i].enabled = false;
                i++;
            }
            UnityUtils.StaticReset();
            GameServicesManager.StaticReset();
            MultipleEmittersPool.StaticReset();
            if (Service.IsSet <AudioManager>())
            {
                Service.Get <AudioManager>().CleanUp();
            }
            if (Service.IsSet <WWWManager>())
            {
                Service.Get <WWWManager>().CancelAll();
            }
            if (Service.IsSet <AssetManager>())
            {
                Service.Get <AssetManager>().ReleaseAll();
            }
            if (Service.IsSet <EntityController>())
            {
                Service.Get <EntityController>().StaticReset();
            }
            if (Service.IsSet <IDataController>())
            {
                Service.Get <IDataController>().Exterminate();
            }
            if (Service.IsSet <ISocialDataController>())
            {
                Service.Get <ISocialDataController>().StaticReset();
            }
            JsonParser.StaticReset();
            CollisionFilters.StaticReset();
            ProcessingScreen.StaticReset();
            YesNoScreen.StaticReset();
            DynamicRadiusView.StaticReset();
            if (Service.IsSet <Lang>())
            {
                Service.Get <Lang>().CustomKoreanFont = null;
            }
        }