This commit is contained in:
parent
b5799a5ba9
commit
03f42ac70e
|
@ -238,7 +238,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
equipmentCommon.SetDatabaseInfo("bdxx", index.ToString());
|
equipmentCommon.SetDatabaseInfo("bdxx", index.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -395,14 +395,19 @@ 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);
|
{
|
||||||
gamemap.gameObject.SetActive(false);
|
gamePos.gameObject.SetActive(false);
|
||||||
|
gamemap.gameObject.SetActive(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gamePos.gameObject.SetActive(true);
|
if (gamemap && gamePos)
|
||||||
gamemap.gameObject.SetActive(true);
|
{
|
||||||
|
gamePos.gameObject.SetActive(true);
|
||||||
|
gamemap.gameObject.SetActive(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue