/// <summary>
        /// 创建卸载场景失败事件。
        /// </summary>
        /// <param name="sceneAssetName">场景资源名称。</param>
        /// <param name="userData">用户自定义数据。</param>
        /// <returns>创建的卸载场景失败事件。</returns>
        public static InnerUnloadSceneFailureEventArgs Create(string sceneAssetName, object userData)
        {
            InnerUnloadSceneFailureEventArgs unloadSceneFailureEventArgs = ReferencePool.Acquire <InnerUnloadSceneFailureEventArgs>();

            unloadSceneFailureEventArgs.SceneAssetName = sceneAssetName;
            unloadSceneFailureEventArgs.UserData       = userData;
            return(unloadSceneFailureEventArgs);
        }
Exemplo n.º 2
0
 private void OnUnloadSceneFailure(object sender, InnerUnloadSceneFailureEventArgs e)
 {
     Log.Warning("Unload scene failure, scene asset name '{0}'.", e.SceneAssetName);
     EventComponent.This.Fire(this, OuterUnloadSceneFailureEventArgs.Create(e));
 }