This commit is contained in:
parent
8dcc160672
commit
ae8ad146db
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue