Nextrek
Diff Revisions
127
vs
130
for /3DSpace/Assets/Custum/Scripts/AllyShip.cs
|
@@ -52,9 +52,9 @@ |
52 |
52 |
|
if(life<=0) |
53 |
53 |
|
{ |
54 |
54 |
|
isAlive = false; |
55 |
|
- |
Instantiate(GameManager.Instance.explosionEffect, _transform.position, _transform.rotation); |
56 |
|
- |
CommunicationCenter.Instance.DestroyOneAlly(_transform.gameObject); |
57 |
|
- |
Destroy(_transform.gameObject); |
|
55 |
+ |
Instantiate(GameManager.Instance.explosionEffect, this.transform.position, this.transform.rotation); |
|
56 |
+ |
CommunicationCenter.Instance.DestroyOneAlly(this.gameObject); |
|
57 |
+ |
Destroy(this.gameObject); |
58 |
58 |
|
} |
59 |
59 |
|
} |
60 |
60 |
|
|