Esempio n. 1
0
        /// <summary>
        /// 初始化卸载场景回调函数集的新实例。
        /// </summary>
        /// <param name="unloadSceneSuccessCallback">卸载场景成功回调函数。</param>
        /// <param name="unloadSceneFailureCallback">卸载场景失败回调函数。</param>
        public UnloadSceneCallbacks(UnloadSceneSuccessCallback unloadSceneSuccessCallback, UnloadSceneFailureCallback unloadSceneFailureCallback)
        {
            if (unloadSceneSuccessCallback == null)
            {
                throw new GameFrameworkException("Unload scene success callback is invalid.");
            }

            m_UnloadSceneSuccessCallback = unloadSceneSuccessCallback;
            m_UnloadSceneFailureCallback = unloadSceneFailureCallback;
        }
Esempio n. 2
0
 /// <summary>
 /// 初始化卸载场景回调函数集的新实例。
 /// </summary>
 /// <param name="unloadSceneSuccessCallback">卸载场景成功回调函数。</param>
 public UnloadSceneCallbacks(UnloadSceneSuccessCallback unloadSceneSuccessCallback)
     : this(unloadSceneSuccessCallback, null)
 {
 }
 public UnloadSceneCallbacks(UnloadSceneSuccessCallback unloadSceneSuccessCallback, UnloadSceneFailureCallback unloadSceneFailureCallback)
 {
     UnloadSceneSuccessCallback = unloadSceneSuccessCallback;
     UnloadSceneFailureCallback = unloadSceneFailureCallback;
 }