This commit is contained in:
yulong 2024-03-06 17:04:27 +08:00
parent 8dcc160672
commit ae8ad146db
2 changed files with 3 additions and 3 deletions

View File

@ -147,7 +147,7 @@ public class UIBootstrap : MonoSingleton<UIBootstrap>
private IEnumerator ShowLoad(UnityAction callback = null)
{
loadTem.SetActive(true);
yield return new WaitForSeconds(3f);
yield return new WaitForSeconds(1f);
loadTem.SetActive(false);
callback?.Invoke();
}

View File

@ -389,13 +389,13 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
private void Judgingdistance()
{
RaycastHit hit;
Debug.LogError("调用了");
//Debug.LogError("调用了");
if (Physics.Raycast(transform.position, Vector3.down, out hit))
{
Debug.Log(hit.distance);
if (hit.distance <= 1f)
{
Debug.Log("隐藏了");
//Debug.Log("隐藏了");
gamePos.gameObject.SetActive(false);
gamemap.gameObject.SetActive(false);
}