Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //The following produces the error: "Unexpected token )"
- function LightFire(campfire:GameObject){
- campfire.GetComponentInChildren<ParticleSystem>().Play();
- campfire.audio.Play();
- Destroy(matchGUI);
- haveMatches = false;
- }
- // The following compiles, but doesn't light the fire or start the smoke,
- //thought the campfire audio does work.
- function LightFire(campfire:GameObject){
- campfire.GetComponentInChildren(ParticleSystem).Play();
- campfire.audio.Play();
- Destroy(matchGUI);
- haveMatches = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement