|
@@ -18,11 +18,11 @@ namespace GFGGame
|
|
private RawImage imgVideo;
|
|
private RawImage imgVideo;
|
|
private Button BtnSkipVertical;
|
|
private Button BtnSkipVertical;
|
|
private VideoPlayer videoPlayer;
|
|
private VideoPlayer videoPlayer;
|
|
|
|
+ private AudioSource audioSource;
|
|
private List<ItemData> _rewardList;
|
|
private List<ItemData> _rewardList;
|
|
|
|
|
|
public void Show(List<ItemData> _reward = null)
|
|
public void Show(List<ItemData> _reward = null)
|
|
{
|
|
{
|
|
- MusicManager.Instance.PlayCroutine(ResPathUtil.GetMusicPath("luckyboxMp3", "mp3"));
|
|
|
|
FairyGUI.GRoot.inst.touchable = false;
|
|
FairyGUI.GRoot.inst.touchable = false;
|
|
string path = ResPathUtil.GetUUIPrefabPath("UILuckyBox");
|
|
string path = ResPathUtil.GetUUIPrefabPath("UILuckyBox");
|
|
handle = YooAssets.LoadAssetSync<GameObject>(path);
|
|
handle = YooAssets.LoadAssetSync<GameObject>(path);
|
|
@@ -47,6 +47,9 @@ namespace GFGGame
|
|
videoPlayer.url = videoHandle.GetRawFilePath();
|
|
videoPlayer.url = videoHandle.GetRawFilePath();
|
|
videoPlayer.Play();
|
|
videoPlayer.Play();
|
|
|
|
|
|
|
|
+ audioSource = _ui.transform.GetComponent<AudioSource>();
|
|
|
|
+ audioSource.Play();
|
|
|
|
+
|
|
_rewardList = _reward;
|
|
_rewardList = _reward;
|
|
}
|
|
}
|
|
|
|
|