topical media & game development

talk show tell print

lib-unity-tutorial-gameplay-Assets-Scripts-Effects-StopEmittingAfterDelay.js / js



  // Small helper script to turn off a particle emitter after a given delay
  
  var delay = 0.1;        // The pause to take. 
  
  // We start out by waiting for a little while
  yield WaitForSeconds(delay);
  
  // Then we turn of the particle emitter
  particleEmitter.emit = false;
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.