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()
|
||||
|
||||
Reference in New Issue
Block a user