using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class fullscreen : MonoBehaviour, IVirtualButtonEventHandler
{
private GameObject vbButtonObject;
// Use this for initialization
void Start()
{
vbButtonObject = GameObject.Find("fullb");
vbButtonObject.GetComponent<VirtualButtonBehaviour>().RegisterEventHandler(this);
}
public void OnButtonPressed(VirtualButtonBehaviour vb)
{
Debug.Log("1");
}
public void OnButtonReleased(VirtualButtonBehaviour vb)
{
Debug.Log("2");
}
// Update is called once per frame
void Update()
{
}
}
当我尝试使用VirtualButtonAbstractBehaviour而不是VirtualButtonBehaviour时,这是我的项目代码,它强调它就像有一个拼写错误。我的虚拟按钮不起作用请帮忙。