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

18 lines
327 B
C#

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