Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UnityEngine
- class Explosion (MonoBehaviour):
- def Update ():
- StartCoroutine(DestroyExplosion())
- def DestroyExplosion() as IEnumerator:
- yield WaitForSeconds(2)
- Destroy(gameObject)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement