Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
199ca6c23a
|
@ -395,15 +395,20 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
Debug.Log(hit.distance);
|
Debug.Log(hit.distance);
|
||||||
if (hit.distance <= 1f)
|
if (hit.distance <= 1f)
|
||||||
{
|
{
|
||||||
//Debug.Log("隐藏了");
|
if (gamemap && gamePos)
|
||||||
|
{
|
||||||
gamePos.gameObject.SetActive(false);
|
gamePos.gameObject.SetActive(false);
|
||||||
gamemap.gameObject.SetActive(false);
|
gamemap.gameObject.SetActive(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (gamemap && gamePos)
|
||||||
{
|
{
|
||||||
gamePos.gameObject.SetActive(true);
|
gamePos.gameObject.SetActive(true);
|
||||||
gamemap.gameObject.SetActive(true);
|
gamemap.gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue