This commit is contained in:
账号名 2024-03-06 19:48:35 +08:00
commit 199ca6c23a
1 changed files with 11 additions and 6 deletions

View File

@ -395,15 +395,20 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
Debug.Log(hit.distance);
if (hit.distance <= 1f)
{
//Debug.Log("隐藏了");
if (gamemap && gamePos)
{
gamePos.gameObject.SetActive(false);
gamemap.gameObject.SetActive(false);
}
}
else
{
if (gamemap && gamePos)
{
gamePos.gameObject.SetActive(true);
gamemap.gameObject.SetActive(true);
}
}
}
}