提交场景跳转,修复360视频播放,更新场景播放效果
This commit is contained in:
@@ -4,6 +4,8 @@ using UnityEngine;
|
||||
|
||||
public class GrabItem : MonoBehaviour
|
||||
{
|
||||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
[SerializeField] private GameObject childAnimator; // ֱ<><D6B1><EFBFBD>϶<EFBFBD><CFB6><EFBFBD>
|
||||
public bool restIsBack = false; //<2F>ſ<EFBFBD><C5BF><EFBFBD><EFBFBD>Ƿ<C7B7>ԭλ<D4AD><CEBB>
|
||||
public bool isUseRigidbody = false; //<2F>Ƿ<EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
private Vector3 startPosition = Vector3.zero; //<2F><>ʼλ<CABC><CEBB>
|
||||
@@ -181,8 +183,7 @@ public class GrabItem : MonoBehaviour
|
||||
this.GetComponent<UpDownMovement>().isMove = isMove;
|
||||
}
|
||||
}
|
||||
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")]
|
||||
[SerializeField] private GameObject childAnimator; // ֱ<><D6B1><EFBFBD>϶<EFBFBD><CFB6><EFBFBD>
|
||||
|
||||
|
||||
public void SetTriggerParameter(string parameterName)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user