using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using Vuforia;
public class Push : MonoBehaviour
{
private bool isTranslate = false;
public float rotateSpeed = 1;
bool push = false;
public GameObject sampleUINewPosition;//要滑动到的位置
public GameObject sampleUIOldPosition;//初始位置
public GameObject sampleUI;
float distance;
float time = 0;
// Use this for initialization
void Start()
{
}
public void MyPointerDown()//判断图片被点击到
{
push = true;
// Debug.Log("被点击");
}
public void MyPointerUp()
{
isTranslate = false;
push = false;
//Debug.Log("点击松开");
}
using System.Collections;
using UnityEngine.EventSystems;
using Vuforia;
public class Push : MonoBehaviour
{
private bool isTranslate = false;
public float rotateSpeed = 1;
bool push = false;
public GameObject sampleUINewPosition;//要滑动到的位置
public GameObject sampleUIOldPosition;//初始位置
public GameObject sampleUI;
float distance;
float time = 0;
// Use this for initialization
void Start()
{
}
public void MyPointerDown()//判断图片被点击到
{
push = true;
// Debug.Log("被点击");
}
public void MyPointerUp()
{
isTranslate = false;
push = false;
//Debug.Log("点击松开");
}