public static byte[] getCache(string url) { if (AssetCacheURL.Contains(url)) { int i = AssetCacheURL.IndexOf(url); return(AssetCacheDATA[i].ReadFile()); } //if(AssetCache.ContainsKey(url)){ // return AssetCache[url]; //} return(null); }
public float GetActionReward(int _locationIndex) { float ar = -1f; int i = actions.IndexOf(_locationIndex); if (i >= 0) { AINode node = BlackBord.GetNode(i); ar = node.Reward; } return(ar); }