Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
3db4f21d46
|
@ -77,9 +77,8 @@ public class HighPriorityTarget : MonoBehaviour
|
|||
{
|
||||
HP = hp;
|
||||
}
|
||||
GameObject Bao = Instantiate(explodePrefab, transform);
|
||||
Bao.transform.localPosition = Pos;
|
||||
Bao.transform.SetParent(null);
|
||||
GameObject Bao = Instantiate(explodePrefab);
|
||||
Bao.transform.position = Pos;
|
||||
Bao.SetActive(true);
|
||||
if (HP < 50 && HP > 0)
|
||||
{
|
||||
|
@ -88,11 +87,11 @@ public class HighPriorityTarget : MonoBehaviour
|
|||
}
|
||||
else if (HP <= 0)
|
||||
{
|
||||
GameObject BaoMain = Instantiate(explodePrefab, transform);
|
||||
Bao.transform.localPosition = Pos;
|
||||
Bao.transform.localScale = Vector3.one * 10;
|
||||
Bao.transform.SetParent(null);
|
||||
Bao.SetActive(true);
|
||||
GameObject BaoMain = Instantiate(explodePrefab,transform);
|
||||
BaoMain.transform.localPosition = Vector3.zero;
|
||||
BaoMain.transform.localScale = Vector3.one * 10;
|
||||
BaoMain.transform.SetParent(null);
|
||||
BaoMain.SetActive(true);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue