So I’ve searched far and wide for a solution to my problem and seems I’m at a loss.
If you rage me for not searching hard enough, I’ll bash your face in. I’m at my wits end on this issue, and has halted my games development.
On a lighter note… My character “Player” is named & tagged as “Player”(Seen below)
-Ridgedbody applied, and “CollisionChange1.js” is attached to him.
CollisionChange.js :
#pragma strict
function OnCollisionEnter(other : Collision){
if(other.gameObject.name == "Cave1Entrance"){
Debug.Log("Collided with " + other.gameObject);
//Application.LoadLevel("cave1");
}
if(other.gameObject.tag == "Cave1Entrance"){
//Application.LoadLevel("cave1");
Debug.Log("Collided with " + other.gameObject);
}
}
I’m using a 1x1 cube for my “Cave Entrance” until I can get this working properly, then I’ll delete this 1x1 cube and rename my original cave entrance to “Cave1Entrance”. (Example Below of names/tags/etc)
Yes, my build settings are completed. Eyden (0), cave1 (1)
Ugh, a little help would be a huge relief…
Thanks guys.