daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 74 in 6 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace DefaultNamespace.Scripts.UI.Screens.Game
  2. {
  3.     public class ControllComponent : WindowComponent, IPointerDownHandler, IPointerUpHandler
  4.     {
  5.         public Action onPointerDown, onPointerUp;
  6.  
  7.         public void SetCallbacks(Action pointerDown, Action pointerUp)
  8.         {
  9.             onPointerDown = pointerDown;
  10.             onPointerUp = pointerUp;
  11.         }
  12.  
  13.         public void OnPointerDown(PointerEventData eventData)
  14.         {
  15.             onPointerDown.SafeInvoke();
  16.         }
  17.  
  18.         public void OnPointerUp(PointerEventData eventData)
  19.         {
  20.             onPointerUp.SafeInvoke();
  21.         }
  22.     }
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top