Example #1
0
    public void Init(string _path, Action <bool> _callBack)
    {
        callBack = _callBack;

        GameObject go = new GameObject();

        AssemblyManagerDownLoader downLoader = go.AddComponent <AssemblyManagerDownLoader>();

        downLoader.Init(_path, GetBytes);
    }
Example #2
0
    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);
    }