15 lines
215 B
C#
15 lines
215 B
C#
using UnityEngine;
|
|
|
|
public class ButtonScript : MonoBehaviour
|
|
{
|
|
public int buttonIndex;
|
|
public ButtonsMinigame game;
|
|
|
|
void OnMouseDown()
|
|
{
|
|
game.OnButtonClicked(buttonIndex);
|
|
}
|
|
|
|
|
|
}
|
|
|