Added the ability to use a limited number of black dice.

This commit is contained in:
Maxwell Dodd 2025-01-27 14:16:20 +01:00
parent 0e869555d3
commit bcfd42147b
12 changed files with 1058 additions and 26 deletions

View file

@ -2,6 +2,7 @@ using System;
using UnityEngine;
using Object = UnityEngine.Object;
using System.Collections.Generic;
using Abilities;
using TMPro;
using Unity.VisualScripting;
@ -15,8 +16,6 @@ public enum GameState
}
public class GameManager : MonoBehaviour
{
public static GameManager Instance { get; private set; }
[SerializeField] public GameState state;
[SerializeField] private GameObject rooms;
[SerializeField] private DiceRoller diceRoller;
@ -25,15 +24,7 @@ public class GameManager : MonoBehaviour
private DicePair _dicePairOne = new();
private DicePair _dicePairTwo = new();
public event Action<GameState> StateChanged;
private void Awake() {
if (Instance != null && Instance != this) {
Destroy(gameObject);
return;
}
Instance = this;
}
public static event Action<GameState> StateChanged;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()