Advertisement
Guest User

Island Question

a guest
Sep 25th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement