Advertisement
pivotraze

Explosion Script

Dec 2nd, 2012
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BOO 0.21 KB | None | 0 0
  1. import UnityEngine
  2.  
  3. class Explosion (MonoBehaviour):
  4.    
  5.     def Update ():
  6.         StartCoroutine(DestroyExplosion())
  7.        
  8.     def DestroyExplosion() as IEnumerator:
  9.         yield WaitForSeconds(2)
  10.         Destroy(gameObject)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement