Added explosions
This commit is contained in:
@@ -10,6 +10,7 @@ namespace InterfaceOff.WorldScene
|
||||
[SerializeField] private int DeathIndex = 500;
|
||||
[SerializeField] private Rigidbody Body;
|
||||
[SerializeField] private GameObject RendererObject;
|
||||
[SerializeField] private GameObject ExplosionPrefab;
|
||||
|
||||
private Quaternion StartRotation;
|
||||
private Vector3 StartPosition;
|
||||
@@ -55,6 +56,10 @@ namespace InterfaceOff.WorldScene
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
RendererObject.SetActive(false);
|
||||
|
||||
GameObject explosionGoBoomBoom = Instantiate(ExplosionPrefab, transform);
|
||||
yield return new WaitForSeconds(1f);
|
||||
Destroy(explosionGoBoomBoom);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user