TexeL

Untitled

Feb 1st, 2012
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class GUIButton : MonoBehaviour
  5. {
  6.     public bool isGUI;
  7.     public int ButtonID;
  8.  
  9.     public delegate void ButtonCall(int ID);
  10.     public static event ButtonCall ButtonCallEvent;
  11.  
  12.     void OnMouseDown()
  13.     {
  14.         ButtonCallEvent(ButtonID);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment