This commit is contained in:
2025-10-14 14:29:08 +08:00
parent b085bb31d0
commit 4933c99c07
4 changed files with 69 additions and 17 deletions

View File

@@ -31,6 +31,8 @@ public class VideoPanel : BasePanel
}
public override UITweenType TweenType => UITweenType.Fade;
public override void Initialize(GameObject panelGo)
{
base.Initialize(panelGo);
@@ -43,9 +45,9 @@ public class VideoPanel : BasePanel
_animator = area.GetComponentInChildren<Animator>();
}
public override void OnEnter()
public override void OnEnter(Action complete = null)
{
base.OnEnter();
base.OnEnter(complete);
this.RegisterEvent<ModeType, VideoInfo>(ModeType.VideoStart, OnStartMove);
this.RegisterEvent<ModeType>(ModeType.VideoEnd, OnStopMove);