Compare commits
2 Commits
e34c22dc7b
...
8b64184972
Author | SHA1 | Date |
---|---|---|
|
8b64184972 | |
|
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