I have been busy making a 2D game for the past month and am really happy with the way it has turned out... However my destroyer (collider) to end the level and send me to my other level which has the info on score etc isn't working how I would like it to..
Here the script on the Destroyer:
using UnityEngine;
using System.Collections;
public class EndGameDestroyer : MonoBehaviour {
void OnTriggerEnter2D(Collider2D other)
{
if (other.tag == "Player") {
Application.LoadLevel(2);
return;
}
}
}
Im using C# btw
Currently I run through the level and see the Destroyer in the background but then it just disapears and doesnt end the level. Please help as I am showing my game to the public at a games expo my college is running tommorow...
Thanks in advance :D