public void Init(string _path, Action <bool> _callBack) { callBack = _callBack; GameObject go = new GameObject(); AssemblyManagerDownLoader downLoader = go.AddComponent <AssemblyManagerDownLoader>(); downLoader.Init(_path, GetBytes); }
public void Init(string _path, Action <bool> _callBack) { if (downLoader == null) { GameObject go = new GameObject(); downLoader = go.AddComponent <AssemblyManagerDownLoader>(); } Action <byte[]> del = delegate(byte[] obj) { GetBytes(obj, _callBack); }; downLoader.Init(_path, del); }