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(); }
public void Dispose() { cacheResource.Clear(); cacheResource = null; }