这是我的情况:
我一直在研究这个项目,虚拟按钮是自己按下的。我尝试将灵敏度级别设置得低一些,但它仍然不起作用!
我该如何解决?
using UnityEngine;
using Vuforia;
public class Bu : MonoBehaviour, IVirtualButtonEventHandler
{
public GameObject button1;
public GameObject Sphere;
void Start()
{
button1 = GameObject.Find("button1");
Sphere = GameObject.Find("Sphere");
button1.GetComponent<VirtualButtonBehaviour>().RegisterEventHandler(this);
}
public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
{
Debug.Log("Pressed");
}
public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
{
Debug.Log("Released");
}
}