Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
cdd47ff47a
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue