Beispiel #1
0
 private DataManager()
 {
     protoPath     = string.Format("{0}/{1}{2}", UnityEngine.Application.persistentDataPath, DownloadResource.SERVER_URL_BRANCK, "/GameResources/bytes");
     account       = new Account();
     player        = new Player();
     battle        = new Battle();
     cacheResource = new CacheResource();
 }
Beispiel #2
0
 public void Dispose()
 {
     cacheResource.Clear();
     cacheResource = null;
 }