mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
feat(scene): 添加环绕场景过渡处理器注册功能
- 实现 RegisterAroundHandler 方法用于注册环绕场景过渡处理器 - 实现 UnregisterAroundHandler 方法用于注销环绕场景过渡处理器 - 添加处理器选项配置参数支持 - 提供完整的环绕处理器生命周期管理功能
This commit is contained in:
parent
29d05e099b
commit
6b51c04deb
@ -141,6 +141,28 @@ public abstract class SceneRouterBase
|
|||||||
_pipeline.UnregisterHandler(handler);
|
_pipeline.UnregisterHandler(handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 注册环绕场景过渡处理器。
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="handler">环绕处理器实例。</param>
|
||||||
|
/// <param name="options">处理器选项配置。</param>
|
||||||
|
public void RegisterAroundHandler(
|
||||||
|
ISceneAroundTransitionHandler handler,
|
||||||
|
SceneTransitionHandlerOptions? options = null)
|
||||||
|
{
|
||||||
|
_pipeline.RegisterAroundHandler(handler, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 注销环绕场景过渡处理器。
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="handler">环绕处理器实例。</param>
|
||||||
|
public void UnregisterAroundHandler(
|
||||||
|
ISceneAroundTransitionHandler handler)
|
||||||
|
{
|
||||||
|
_pipeline.UnregisterAroundHandler(handler);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加场景路由守卫。
|
/// 添加场景路由守卫。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user