This commit is contained in:
parent
d899820158
commit
aff925fdc2
|
@ -125,10 +125,13 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
||||||
+ "编号" + serialNumber + "子无人机" + "自杀式攻击自爆了";
|
+ "编号" + serialNumber + "子无人机" + "自杀式攻击自爆了";
|
||||||
UploadLog(_log);
|
UploadLog(_log);
|
||||||
}
|
}
|
||||||
GameObject Bao = Instantiate(explodePrefab, transform);
|
if(explodePrefab&&transform)
|
||||||
Bao.transform.localPosition = Vector3.zero;
|
{
|
||||||
Bao.transform.SetParent(null);
|
GameObject Bao = Instantiate(explodePrefab, transform);
|
||||||
Bao.SetActive(true);
|
Bao.transform.localPosition = Vector3.zero;
|
||||||
|
Bao.transform.SetParent(null);
|
||||||
|
Bao.SetActive(true);
|
||||||
|
}
|
||||||
//DroneViewDisplay.Instance.DistroyUI(unmannedAerialVehicleManage.equipmentCommon.deviceID);
|
//DroneViewDisplay.Instance.DistroyUI(unmannedAerialVehicleManage.equipmentCommon.deviceID);
|
||||||
DeviceManager.Instance.RemoveDevice(gameObject);
|
DeviceManager.Instance.RemoveDevice(gameObject);
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
|
|
Loading…
Reference in New Issue