This commit is contained in:
账号名 2024-01-29 15:46:24 +08:00
commit 2e4373b2d2
6 changed files with 10 additions and 13 deletions

View File

@ -28,6 +28,7 @@ public class Backpack : MonoBehaviour
void Update()
{
if (GlobalFlag.isStartRehearsing) return;
if (Input.GetMouseButtonDown(1))
{
time = 0.2f;

View File

@ -211,11 +211,13 @@ public class GameManager : MonoSingleton<GameManager>
{
if (hitInfo.collider.tag == "WRJ")
{
UnmannedAerialVehicleManage unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = unmannedAerialVehicleManage;
UnmannedAerialVehicleUI.Instance.ShowButton();
DroneViewDisplay.Instance.CreateUI(unmannedAerialVehicleManage, true);
if (hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>() != null)
{
UnmannedAerialVehicleManage unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = unmannedAerialVehicleManage;
UnmannedAerialVehicleUI.Instance.ShowButton();
DroneViewDisplay.Instance.CreateUI(unmannedAerialVehicleManage, true);
}
}
}
}

View File

@ -115,8 +115,6 @@ public class UIBootstrap : MonoSingleton<UIBootstrap>
return false;
}
public void OnGetWorldInfo(string msg)
{
Debug.Log("OnGetWorldInfo====" + msg);

View File

@ -190,7 +190,7 @@ public class RadarManger : MonoBehaviour
{
if (equipmentCommon.isPlayer && timerCoroutine == null)
{
timerCoroutine = StartCoroutine(Timer());
//timerCoroutine = StartCoroutine(Timer());
isTimerRunning = true;
}
}
@ -239,7 +239,7 @@ public class RadarManger : MonoBehaviour
break;
case "探测距离:":
DetectionRange = weaponitemone[i].para_value;
detectionRadius = float.Parse(DetectionRange) * 100;
detectionRadius = float.Parse(DetectionRange) * 200;
minCamera.orthographicSize = detectionRadius;
break;
case "近盲区:":

View File

@ -269,10 +269,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
}
break;
}
}
var _unmannedAerialVehicle = unmannedAerialVehicles.FindAll(x => x != null && x.gameObject.activeSelf);
if (_unmannedAerialVehicle.Count == 0)
{

View File

@ -64,7 +64,6 @@ public class DroneViewDisplay : MonoSingleton<DroneViewDisplay>
/// <param name="isShow">是否显示</param>
public void CreateUI(UnmannedAerialVehicleManage unmannedAerialVehicleManage, bool isShow)
{
Debug.Log("生成:" + unmannedAerialVehicleManage.transform.name);
if (unmannedAerialVehicleManage.equipmentCommon.deviceID.Length < 10) return;
RadioAngleView radioAngleView = radioAngleViews.Find(x => x.deviceID == unmannedAerialVehicleManage.equipmentCommon.deviceID);
if (radioAngleView)