SHARE
TWEET

Island Question

a guest Sep 25th, 2012 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //The following produces the error: "Unexpected token )"
  2.  
  3. function LightFire(campfire:GameObject){
  4.         campfire.GetComponentInChildren<ParticleSystem>().Play();
  5.         campfire.audio.Play();
  6.         Destroy(matchGUI);
  7.         haveMatches = false;
  8. }
  9. // The following compiles, but doesn't light the fire or start the smoke,
  10. //thought the campfire audio does work.
  11.  
  12. function LightFire(campfire:GameObject){
  13.         campfire.GetComponentInChildren(ParticleSystem).Play();
  14.         campfire.audio.Play();
  15.         Destroy(matchGUI);
  16.         haveMatches = false;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top