3DTD/Assets/Scripts/GameManager/GameManager.cs

16 lines
289 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance;
private void Start()
{
if (Instance != this)
Destroy(Instance);
Instance = this;
}
}