Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class GUIButton : MonoBehaviour
- {
- public bool isGUI;
- public int ButtonID;
- public delegate void ButtonCall(int ID);
- public static event ButtonCall ButtonCallEvent;
- void OnMouseDown()
- {
- ButtonCallEvent(ButtonID);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment