This question was
closed Jul 20, 2016 at 06:42 PM by
matthrewp for the following reason:
Problem was solved.
Question by
matthrewp · Jul 15, 2016 at 03:52 PM ·
scripting problemrestart gamelevel editor
Restart not working.
I have a very simple restart script but it's not working.
using UnityEngine;
using System.Collections;
public class GameOver : MonoBehaviour {
void Update () {
if (PlayerInjured.pHealth <= 0)
{
Application.LoadLevel(0);
}
}
}
What is wrong with the script?
P.S. How do you edit levels? For future reference.
Comment
Follow this Question
Related Questions
I got a bunch of problems and i don't know how to fix them! 0 Answers
I have a problem about my Arkanoid game. Please help! 0 Answers
Game doesn't start after death and pause menu 1 Answer
My restart button isn't doing what I need it to do. 0 Answers
I need help getting my players to reset with Application.LoadLevel 0 Answers