关卡选择背景音乐
parent
4f51863b7a
commit
09b60455d1
|
|
@ -25644,13 +25644,13 @@ MonoBehaviour:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8372920497310273867}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
|
|
@ -25671,7 +25671,7 @@ VideoPlayer:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8372920497310273867}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_VideoClip: {fileID: 32900000, guid: 0eaa6ec96f3044e4eaec10fe32cfce3b, type: 3}
|
||||
m_TargetCameraAlpha: 1
|
||||
m_TargetCamera3DLayout: 0
|
||||
|
|
@ -25707,7 +25707,7 @@ AudioSource:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8372920497310273867}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 0}
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@ namespace Gameplay.Guide
|
|||
|
||||
NetHelper.SaveGuideProgress((uint)curGroup.CurStep.Cfg.Id); // 完成引导步骤,保存服务器
|
||||
DebugUtil.Log($"<color=#00FA9A>完成引导步骤,服务器保存引导id:{curGroup.CurStep.Cfg.Id}</color>");
|
||||
queueTime.Clear();
|
||||
|
||||
if (curGroup.IsComplete)
|
||||
{
|
||||
|
|
@ -423,12 +424,14 @@ namespace Gameplay.Guide
|
|||
|
||||
DateTime curTime = CommonUtils.GetCurTime(CommonUtils.E_TimeType.Local);
|
||||
queueTime.Enqueue(curTime);
|
||||
if (!queueTime.TryPeek(out DateTime firstTime))
|
||||
return;
|
||||
while (queueTime.TryPeek(out DateTime firstTime))
|
||||
{
|
||||
TimeSpan timeSpan = curTime - firstTime;
|
||||
if (timeSpan.TotalSeconds < SKIP_GUIDE_CHECK_TIME)
|
||||
break;
|
||||
|
||||
TimeSpan timeSpan = curTime - firstTime;
|
||||
if (timeSpan.TotalSeconds > SKIP_GUIDE_CHECK_TIME)
|
||||
queueTime.Dequeue();
|
||||
}
|
||||
|
||||
if (TableManager.Instance.Tables.GlobalConfig.SkipGuideClickCount <= queueTime.Count)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2048,9 +2048,10 @@ public class UI_LevelSelectController : UIWindow
|
|||
dicSelectLevel.Add(E_ChapterType.War, new WarSelectLevel(FindObj("UI_LevelSelect/UI_War"), levelList));
|
||||
#endregion
|
||||
|
||||
renderTexture = RenderTexturePool.Instance.Create("LevelSelect", 2400, 1500); // 关卡选择固定该分辨率
|
||||
videoPlayer.targetTexture = renderTexture;
|
||||
rawImageVideo.texture = renderTexture;
|
||||
//renderTexture = RenderTexturePool.Instance.Create("LevelSelect", 2400, 1500); // 关卡选择固定该分辨率
|
||||
//videoPlayer.targetTexture = renderTexture;
|
||||
//rawImageVideo.texture = renderTexture;
|
||||
AudioManager.Instance.PlayAudio(Constants.Sound.LEVEL_SELECT_BGM, AudioCriManager.EPlayType.Music);
|
||||
currencyList.SetData(GLConfig.Inst.data.GoldItemId, GLConfig.Inst.data.DiamondItemId, GLConfig.Inst.data.EnergyPointID);
|
||||
curMode = E_ChapterType.Count;
|
||||
|
||||
|
|
@ -2153,7 +2154,7 @@ public class UI_LevelSelectController : UIWindow
|
|||
|
||||
CommonUtils.PreLoadOrUnloadEnvironmentWeatherDayNightIcon(false);
|
||||
CommonUtils.PreLoadOrUnloadWarRatingIcon(false);
|
||||
RenderTexturePool.Instance.Destroy(renderTexture);
|
||||
//RenderTexturePool.Instance.Destroy(renderTexture);
|
||||
|
||||
base.OnRelease();
|
||||
}
|
||||
|
|
@ -2275,7 +2276,6 @@ public class UI_LevelSelectController : UIWindow
|
|||
{
|
||||
videoPlayer.targetTexture.Release();
|
||||
videoPlayer.Play();
|
||||
AudioManager.Instance.PlayAudio(Constants.Sound.LEVEL_SELECT_BGM, AudioCriManager.EPlayType.Music);
|
||||
rawImageVideo.color = Color.white;
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in New Issue