This commit is contained in:
parent
414700473b
commit
531c745b73
|
@ -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