/// <summary> /// 初始化加载二进制资源回调函数集的新实例。 /// </summary> /// <param name="loadBinarySuccessCallback">加载二进制资源成功回调函数。</param> /// <param name="loadBinaryFailureCallback">加载二进制资源失败回调函数。</param> public LoadBinaryCallbacks(LoadBinarySuccessCallback loadBinarySuccessCallback, LoadBinaryFailureCallback loadBinaryFailureCallback) { if (loadBinarySuccessCallback == null) { throw new GameFrameworkException("Load binary success callback is invalid."); } m_LoadBinarySuccessCallback = loadBinarySuccessCallback; m_LoadBinaryFailureCallback = loadBinaryFailureCallback; }
/// <summary> /// 初始化加载二进制资源回调函数集的新实例。 /// </summary> /// <param name="loadBinarySuccessCallback">加载二进制资源成功回调函数。</param> public LoadBinaryCallbacks(LoadBinarySuccessCallback loadBinarySuccessCallback) : this(loadBinarySuccessCallback, null) { }