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

19 lines
359 B
C#
Raw Normal View History

2024-04-20 22:05:01 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance;
2024-04-20 22:07:34 +02:00
public bool IsBuildMode = false;
2024-04-20 22:20:20 +02:00
public Tower SelectedTower;
2024-04-20 22:07:34 +02:00
2024-04-20 22:20:20 +02:00
private void Awake()
2024-04-20 22:05:01 +02:00
{
if (Instance != this)
Destroy(Instance);
Instance = this;
}
}