NO LONGER CLICK THROUGH UI OMG

This commit is contained in:
dhain 2022-06-24 08:38:28 +02:00
parent d3a06effc5
commit 4a8067d3d7
7 changed files with 76 additions and 28 deletions

View file

@ -7,6 +7,20 @@ using UnityEngine.Tilemaps;
/// Instatiates Tiles at beginning of the game
/// </summary>
public class TileController : MonoBehaviour {
#region Singleton
public static TileController instance;
private void Awake() {
if (instance != null) {
Debug.LogWarning("More than one instance of TileController found");
}
instance = this;
}
#endregion
public GameObject tile;
public GameObject cameraGameObject;