- Home /
Question by
MistaCasan0va · Aug 18, 2014 at 01:35 PM ·
Enemy Script Help
Is there a way to code something where when an object collides with a player another level loads? How would I code that? Something like this right?:
var isEnemy;
var isHero;
{
if isEnemy collides with isHero;
Application.LoadLevel("Level")
}
Would something like that work?
Comment
you should research colliders then you can use something like this:
http://docs.unity3d.com/ScriptReference/Collider.OnTriggerEnter.html
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Ball in Pong dissapears after hitting paddle 0 Answers
How to lock the Z axis so my Enemy just flips on the Y axis 1 Answer
Why doesn't my script work? 1 Answer