Added coliders to buttons, Buttons are clickable

This commit is contained in:
2026-05-22 23:05:49 +02:00
parent 3060c3965a
commit a4324eaf52
5 changed files with 137 additions and 39 deletions

View File

@@ -0,0 +1,15 @@
using UnityEngine;
public class ButtonScript : MonoBehaviour
{
public int buttonIndex;
public ButtonsMinigame game;
void OnMouseDown()
{
game.OnButtonClicked(buttonIndex);
}
}