Exemplo n.º 1
0
    protected override void CacheSerializedFields()
    {
        cache = target as OnlineMapsCache;
        map   = cache.GetComponent <OnlineMaps>();

        pUseMemoryCache        = serializedObject.FindProperty("useMemoryCache");
        pUseFileCache          = serializedObject.FindProperty("useFileCache");
        pFileCacheLocation     = serializedObject.FindProperty("fileCacheLocation");
        pFileCacheCustomPath   = serializedObject.FindProperty("fileCacheCustomPath");
        pFileCacheTilePath     = serializedObject.FindProperty("fileCacheTilePath");
        pMaxFileCacheSize      = serializedObject.FindProperty("maxFileCacheSize");
        pMaxMemoryCacheSize    = serializedObject.FindProperty("maxMemoryCacheSize");
        pMemoryCacheUnloadRate = serializedObject.FindProperty("memoryCacheUnloadRate");
        pFileCacheUnloadRate   = serializedObject.FindProperty("fileCacheUnloadRate");
    }
Exemplo n.º 2
0
 private void OnEnable()
 {
     cache = target as OnlineMapsCache;
     map   = cache.GetComponent <OnlineMaps>();
     CacheSerializedFields();
 }