tobl3

ButtonScript

Jul 6th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | Gaming | 0 0
  1. using System;
  2. using UnityEngine;
  3.  
  4. public class ButtonScript : MonoBehaviour
  5. {
  6.     public int id;
  7.     public void OnClickHandler()
  8.     {
  9.         GameEvents.instance.ButtonPressed(id);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment