using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class btn : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
public void OnPointerDown(PointerEventData eventData)
{
transform.position = new Vector2 (transform.position.x, transform.position.y + 6f);
}
public void OnPointerUp(PointerEventData eventData)
{
transform.position = new Vector2(transform.position.x, transform.position.y-6f);
}
}