Working on health and passing turn without using two dice pairs

This commit is contained in:
Max Dodd 2025-01-23 10:22:22 +01:00
parent 31917ba415
commit 9e6cbb22da
5 changed files with 521 additions and 4 deletions

View file

@ -0,0 +1,23 @@
using System;
using UnityEngine;
using UnityEngine.UIElements;
using UnityEngine.Video;
using Button = UnityEngine.UI.Button;
public class PassManager : MonoBehaviour
{
[SerializeField] private Button passButton;
public event EventHandler PassRequested;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
passButton.onClick.AddListener(OnPassClicked);
}
private void OnPassClicked()
{
PassRequested?.Invoke(this, EventArgs.Empty);
}
}