This commit is contained in:
2025-09-02 14:15:18 +08:00
parent 796c8d845d
commit 8872c20cf2
34 changed files with 2024 additions and 695 deletions

View File

@@ -12,6 +12,7 @@ using YooAsset;
public class VideoPanel : BasePanel
{
private Transform area;
private RawImage intro;
private GameObject prospect;
@@ -33,13 +34,13 @@ public class VideoPanel : BasePanel
public override void Initialize(GameObject panelGo)
{
base.Initialize(panelGo);
intro = activePanel.transform.Find("Intro").GetComponent<RawImage>();
prospect = activePanel.transform.Find("prospect").gameObject;
bg = activePanel.transform.Find("bg").gameObject;
videoPlayer = activePanel.GetComponentInChildren<VideoPlayer>();
audioSource = activePanel.GetComponentInChildren<AudioSource>();
_animator = activePanel.GetComponentInChildren<Animator>();
area = activePanel.transform.Find("Area");
intro = area.Find("Intro").GetComponent<RawImage>();
prospect = area.Find("prospect").gameObject;
bg = area.Find("bg").gameObject;
videoPlayer = area.GetComponentInChildren<VideoPlayer>();
audioSource = area.GetComponentInChildren<AudioSource>();
_animator = area.GetComponentInChildren<Animator>();
}
public override void OnEnter()