Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

How to change levels, Identifier Expected error!

$
0
0
I am trying to change levels but it keeps saying "Identifier Expected". When my player collides with a cube that has "is trigger" checked, I want to change the level to level2. But it doesn't work. Can somebody please help me. Ps. I have already attached the scenes in the build settings.Thanks. using UnityEngine; using System.Collections; public class changeLevel : MonoBehaviour { function OnTriggerEnter (other : Collider) { Application.LoadLevel ("level2"); } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>