Example #1
0
        protected override void _Init()
        {
#if UNITY_STANDALONE || UNITY_EDITOR
            currentPlatform = Platform.pc;
#elif UNITY_IOS
            currentPlatform = Platform.ios;
#elif UNITY_ANDROID
            currentPlatform = Platform.android;
#elif UNITY_WSA
            currentPlatform = Platform.uwp;
#endif

            InitFilePath();

            ui = GetComponent <StorageUI>();
            ui.Init(this);
        }
Example #2
0
        protected override void _Init()
        {
#if UNITY_EDITOR || UNITY_STANDALONE_WIN
            persistentFilePath = Application.dataPath + "/../Storage/";
            cacheFilePath      = Application.dataPath + "/../CacheFile/Storage/";
#else
            persistentFilePath = Application.persistentDataPath + "/Storage/";
            cacheFilePath      = Application.temporaryCachePath + "/Storage/";
#endif

#if UNITY_STANDALONE || UNITY_EDITOR
            currentPlatform = Platform.pc;
#elif UNITY_IOS
            currentPlatform = Platform.ios;
#elif UNITY_ANDROID
            currentPlatform = Platform.android;
#elif UNITY_WSA
            currentPlatform = Platform.uwp;
#endif

            ui = GetComponent <StorageUI>();
            ui.Init(this);
        }