Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Bomb2D : MonoBehaviour
  5. {
  6.  
  7.         // Use this for initialization
  8.         void Start ()
  9.         {
  10.                 print ("Im here");
  11.         }
  12.  
  13.  
  14.         void OnHover (bool isOver)
  15.         {
  16.                 if (isOver) {
  17.                         print ("Im here! NGUI");
  18.                 } else {
  19.                         print ("Im NOT here! NGUI");
  20.                 }
  21.         }
  22.         void OnPress (bool isDown)
  23.         {
  24.                 if (isDown) {
  25.                         print ("Button down NGUI");
  26.                 } else {
  27.                         print ("Button NOT down NGUI");
  28.                 }
  29.         }
  30.         void OnClick ()
  31.         {
  32.                 print ("CLICK");
  33.         }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement