This commit is contained in:
账号名 2024-03-06 17:05:25 +08:00
commit cdd47ff47a
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) private IEnumerator ShowLoad(UnityAction callback = null)
{ {
loadTem.SetActive(true); loadTem.SetActive(true);
yield return new WaitForSeconds(3f); yield return new WaitForSeconds(1f);
loadTem.SetActive(false); loadTem.SetActive(false);
callback?.Invoke(); callback?.Invoke();
} }

View File

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