Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.Events;
- using UnityEngine.EventSystems;
- using System.Collections;
- public class Tushkan_class : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
- {
- public UnityEvent OnDown;
- public UnityEvent OnUp;
- public void OnPointerDown(PointerEventData eventData)
- {
- OnDown.Invoke();
- }
- public void OnPointerUp(PointerEventData eventData)
- {
- OnUp.Invoke();
- }
- public void Func1() {
- Debug.LogWarning("funct1");
- }
- public void Func2() {
- Debug.LogWarning("funct2");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement