ReloadAll() 공개 메소드

Do reload the setting file: Subdir, no exception when duplicate primary key
public ReloadAll ( ) : void
리턴 void
예제 #1
0
        /// <summary>
        /// Get the singleton
        /// </summary>
        /// <returns></returns>
        public static SubdirSettings GetInstance()
        {
            if (_instance == null)
            {
                _instance = new SubdirSettings();

                _instance._ReloadAll(true);
    #if UNITY_EDITOR
                if (SettingModule.IsFileSystemMode)
                {
                    for (var j = 0; j < TabFilePaths.Length; j++)
                    {
                        var tabFilePath = TabFilePaths[j];
                        SettingModule.WatchSetting(tabFilePath, (path) =>
                        {
                            if (path.Replace("\\", "/").EndsWith(path))
                            {
                                _instance.ReloadAll();
                                Log.LogConsole_MultiThread("Reload success! -> " + path);
                            }
                        });
                    }
                }
    #endif
            }
            return(_instance);
        }
예제 #2
0
        /// <summary>
        /// Get the singleton
        /// </summary>
        /// <returns></returns>
	    public static SubdirSettings GetInstance()
	    {
            if (_instance == null) 
            {
                _instance = new SubdirSettings();

                _instance._ReloadAll(true);
    #if UNITY_EDITOR
                if (SettingModule.IsFileSystemMode)
                {
                    for (var j = 0; j < TabFilePaths.Length; j++)
                    {
                        var tabFilePath = TabFilePaths[j];
                        SettingModule.WatchSetting(tabFilePath, (path) =>
                        {
                            if (path.Replace("\\", "/").EndsWith(path))
                            {
                                _instance.ReloadAll();
                                Log.LogConsole_MultiThread("Reload success! -> " + path);
                            }
                        });
                    }

                }
    #endif
            }
	        return _instance;
	    }