Marc-Antoine Dumont f90bfccff5 - Initial commit
2015-08-10 15:36:37 -04:00

17 lines
338 B
C#

using System;
using UnityEngine;
namespace UnityStandardAssets._2D
{
public class Restarter : MonoBehaviour
{
private void OnTriggerEnter2D(Collider2D other)
{
if (other.tag == "Player")
{
Application.LoadLevel(Application.loadedLevelName);
}
}
}
}