提交场景跳转,修复360视频播放,更新场景播放效果

This commit is contained in:
YXY
2026-03-04 16:43:41 +08:00
parent fa11027511
commit 11c7871553
88 changed files with 10632 additions and 4945 deletions

View File

@@ -7,42 +7,17 @@ using UnityEngine;
public class StartShowUICtr : MonoBehaviour
{
// public List<GameObject> ListObj;
public GameObject leaveBoxObj;
public GameObject box360;
public GameObject sceneTitle;
public GameObject Volume; //后效
GameObject dynamicObj;
GameObject staticObj;
//显示字的时间
bool oIsRun = false;
float oneWaitTime = 3f;
float oneRunTime = 0;
private void Awake()
{
dynamicObj = GameObject.Find("Dynamic");
staticObj = GameObject.Find("Static");
if (box360 != null)
{
box360.transform.position = new Vector3(10000,0,0);
}
if (dynamicObj != null)
{
dynamicObj.SetActive(false);
}
if (staticObj != null)
{
staticObj.SetActive(false);
}
if (leaveBoxObj != null)
{
leaveBoxObj.SetActive(false);
}
//for (int i = 0; i < ListObj.Count; i++)
//{
// ListObj[i].SetActive(false);
@@ -52,11 +27,10 @@ public class StartShowUICtr : MonoBehaviour
// Start is called before the first frame update
void Start()
{
GlobalEventMgr.Listen(GameEvent.EventRestScenePosition, GameDataManage_EventRestScenePosition);
SetVolume(false);
//Debug.Log("开始显示UI"+ RunningSceneMgr.Instance._runningSceneData.id);
StartCoroutine(WaitingShowUI()); //显示UI
ChangSceneSphereMgr.Instance.ShowChangeSecne(false);//黑球变淡
// GlobalEventMgr.Listen(GameEvent.EventRestScenePosition, GameDataManage_EventRestScenePosition);
// SetVolume(false);
StartCoroutine(WaitingShowUI()); //<2F><>ʾUI
// ChangSceneSphereMgr.Instance.ShowChangeSecne(false);//<2F><><EFBFBD><EFBFBD>
}
private void Update()
@@ -75,40 +49,9 @@ public class StartShowUICtr : MonoBehaviour
}
}
void SetVolume(bool isShow)
{
if (Volume != null)
{
Volume.SetActive(isShow);
}
}
//恢复场景
void GameDataManage_EventRestScenePosition()
{
//for (int i = 0; i < ListObj.Count; i++)
//{
// ListObj[i].SetActive(true);
//}
if (dynamicObj != null)
{
dynamicObj.SetActive(true);
}
if (staticObj != null)
{
staticObj.SetActive(true);
}
if (leaveBoxObj != null)
{
leaveBoxObj.SetActive(true);
}
box360.transform.position = Vector3.zero;
SetVolume(true);
}
private void OnDestroy()
{
GlobalEventMgr.Remove(GameEvent.EventRestScenePosition);
// GlobalEventMgr.Remove(GameEvent.EventRestScenePosition);
}