1111
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -30,7 +30,7 @@ public class VideoSystem : AbstractSystem, IVideoSystem
|
||||
fadeDuration = 2f,
|
||||
volume = 0f,
|
||||
});
|
||||
await this.GetSystem<IPanelSystem>().PushQueue<VideoPanel>(AppConfig.GetDefaultMainInstance().transform,"Main");
|
||||
await this.GetSystem<IPanelSystem>().PushQueue<VideoPanel>(parent: AppConfig.GetDefaultMainInstance().transform,packageName:"Main");
|
||||
this.GetSystem<IPanelSystem>().SendPanelEvent(ModeType.VideoStart,info);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user