Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…57428110-b9b6-3e40-a3a8-74e02d9a4067
  • Loading branch information
pokelege committed Dec 10, 2014
1 parent 5e440e8 commit d847e60
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions Assets/Code/LevelThreeHandler.cs
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
using UnityEngine;
using System.Collections;

public class LevelThreeHandler : MonoBehaviour {

public GameObject rigidElevator;
public GameObject curvedElevator;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update ()
{
if(rigidElevator.GetComponent<Elevator>().GetTriggered() && curvedElevator.GetComponent<Elevator>().GetTriggered())
{
LoadNextLevel();
}
}

void LoadNextLevel()
using UnityEngine;
using System.Collections;

public class LevelThreeHandler : MonoBehaviour {

public GameObject rigidElevator;
public GameObject curvedElevator;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update ()
{
Application.LoadLevel( "FinalLevel" );
}
}
if(rigidElevator.GetComponent<Elevator>().GetTriggered() && curvedElevator.GetComponent<Elevator>().GetTriggered())
{
LoadNextLevel();
}
}

void LoadNextLevel()
{
Application.LoadLevel( "FinalLevel" );
}
}
Binary file modified Assets/UnityVS/Editor/UnityVS.VersionSpecific.dll
Binary file not shown.

0 comments on commit d847e60

Please sign in to comment.