mirror of
https://github.com/ConjureETS/Human-Farm-Tycoon.git
synced 2026-03-24 10:21:06 +00:00
17 lines
338 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|