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