说明:异步加载lua的bundle,会优先加载cache目录下bundle(一般更新的资源都在cache下) using System; using UnityEngine; using System.Collections; using System.Collections.Generic; using System.IO; using LuaInterface; public class LuaBundleLoader : MonoBehaviour { public delegate vo
using UnityEngine; using System.Collections; using System; public class testLoadFromAB : MonoBehaviour { IEnumerator DownloadAndCache() { while (!Caching.ready) yield return null; //注意,从本地加载时,必须使用前缀 file:///或file://,从网络加载则使用 http://,这两种协议可以在iphone和WI
直接上代码 Part1: using UnityEngine; using System.IO; using System.Collections.Generic; public class CSV { static CSV csv; public List<string[]> m_ArrayData; public static CSV GetInstance() { if (csv == null) { csv = new CSV(); } return csv; } private CS