Multiple triggers in one scene.
I need help using multiple triggers in one scene. I am using two triggers, one to reset the level and one to advance to the next level. Both are using separate box colliers that have been ticked to Is Trigger. When the player touches the reset box it loads the next level. These are the scripts for the Reset and Objective. Rest:
#pragma strict
var Level3 : String;
function OnTriggerEnter(Col : Collider)
{
if(Col.CompareTag("Player"))
{
Application.LoadLevel(Level3);
}
}
Objective:
function OnTriggerEnter() {
Application.LoadLevel("Level4");
}
I am not that advanced at coding so any if any one can help please keep it simple.
Comment
It looks like you're on the right track. What's the problem?
Your answer
Follow this Question
Related Questions
How do I stop multiple spawns? 0 Answers
Second Scene is not showing in Game view 0 Answers
Countdown timer in multiple scene? 1 Answer
Network Manager and Multiple Scenes 1 Answer