Unity判断是点击还是长按

using UnityEngine.EventSystems;
using System.Collections;
using UnityEngine;


// 按下,抬起接口
public class Pressed : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
   
    
    
    //是否长按
    bool IsLongPress = false;
    // 按下
    public

猜你喜欢

转载自blog.csdn.net/qq_36592993/article/details/97661370