示例#1
0
 public LoadAssetCallbacks(LoadAssetSuccessCallback loadAssetSuccessCallback, LoadAssetDependencyAssetCallback loadAssetDependencyAssetCallback = null, LoadAssetFailureCallback loadAssetFailureCallback = null, LoadAssetUpdateCallback loadAssetUpdateCallback = null)
 {
     LoadAssetDependencyAssetCallback = loadAssetDependencyAssetCallback;
     LoadAssetSuccessCallback         = loadAssetSuccessCallback;
     LoadAssetFailureCallback         = loadAssetFailureCallback;
     LoadAssetUpdateCallback          = loadAssetUpdateCallback;
 }
示例#2
0
        /// <summary>
        /// 初始化加载资源回调函数集的新实例。
        /// </summary>
        /// <param name="loadAssetSuccessCallback">加载资源成功回调函数。</param>
        /// <param name="loadAssetFailureCallback">加载资源失败回调函数。</param>
        /// <param name="loadAssetUpdateCallback">加载资源更新回调函数。</param>
        /// <param name="loadAssetDependencyAssetCallback">加载资源时加载依赖资源回调函数。</param>
        public LoadAssetCallbacks(LoadAssetSuccessCallback loadAssetSuccessCallback, LoadAssetFailureCallback loadAssetFailureCallback, LoadAssetUpdateCallback loadAssetUpdateCallback, LoadAssetDependencyAssetCallback loadAssetDependencyAssetCallback)
        {
            if (loadAssetSuccessCallback == null)
            {
                throw new AshException("Load asset success callback is invalid.");
            }

            m_LoadAssetSuccessCallback         = loadAssetSuccessCallback;
            m_LoadAssetFailureCallback         = loadAssetFailureCallback;
            m_LoadAssetUpdateCallback          = loadAssetUpdateCallback;
            m_LoadAssetDependencyAssetCallback = loadAssetDependencyAssetCallback;
        }
示例#3
0
        /// <summary>
        /// 初始化加载资源回调函数集的新实例。
        /// </summary>
        /// <param name="loadAssetSuccessCallback">加载资源成功回调函数。</param>
        /// <param name="loadAssetFailureCallback">加载资源失败回调函数。</param>
        /// <param name="loadAssetUpdateCallback">加载资源更新回调函数。</param>
        /// <param name="loadAssetDependencyAssetCallback">加载资源时加载依赖资源回调函数。</param>
        public LoadAssetCallbackEvent(LoadAssetSuccessCallback loadAssetSuccessCallback, LoadAssetFailureCallback loadAssetFailureCallback, LoadAssetUpdateCallback loadAssetUpdateCallback, LoadAssetDependencyAssetCallback loadAssetDependencyAssetCallback)
        {
            if (loadAssetSuccessCallback == null)
            {
                Log.Error("Load asset success callback is invalid.");
            }

            m_LoadAssetSuccessCallback         = loadAssetSuccessCallback;
            m_LoadAssetFailureCallback         = loadAssetFailureCallback;
            m_LoadAssetUpdateCallback          = loadAssetUpdateCallback;
            m_LoadAssetDependencyAssetCallback = loadAssetDependencyAssetCallback;
        }
示例#4
0
 /// <summary>
 /// 初始化加载资源回调函数集的新实例。
 /// </summary>
 /// <param name="loadAssetSuccessCallback">加载资源成功回调函数。</param>
 /// <param name="loadAssetFailureCallback">加载资源失败回调函数。</param>
 /// <param name="loadAssetDependencyAssetCallback">加载资源时加载依赖资源回调函数。</param>
 public LoadAssetCallbacks(LoadAssetSuccessCallback loadAssetSuccessCallback, LoadAssetFailureCallback loadAssetFailureCallback, LoadAssetDependencyAssetCallback loadAssetDependencyAssetCallback)
     : this(loadAssetSuccessCallback, loadAssetFailureCallback, null, loadAssetDependencyAssetCallback)
 {
 }
示例#5
0
 /// <summary>
 /// 初始化加载资源回调函数集的新实例。
 /// </summary>
 /// <param name="loadAssetSuccessCallback">加载资源成功回调函数。</param>
 /// <param name="loadAssetDependencyAssetCallback">加载资源时加载依赖资源回调函数。</param>
 public LoadAssetCallbackEvent(LoadAssetSuccessCallback loadAssetSuccessCallback, LoadAssetDependencyAssetCallback loadAssetDependencyAssetCallback)
     : this(loadAssetSuccessCallback, null, null, loadAssetDependencyAssetCallback)
 {
 }