我正在尝试使用Vuforia在Unity中运行虚拟按钮的简单实现。 我目前的版本是:Unity 5.6.1
我正在接收无法找到类型或名称空间“IUnzipper”(您使用的是缺少的指令或程序集引用吗?)
我的C#脚本:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class vbScript : MonoBehaviour, IVirtualButtonEventHandler {
GameObject zombie;
// Use this for initialization
void Start () {
zombie = GameObject.Find ("zombie");
GameObject virtualButtonObject = GameObject.Find ("actionButton");
virtualButtonObject.GetComponent<VirtualButtonBehaviour> ().RegisterEventHandler (this);
}
public void OnButtonPressed(VirtualButtonAbstractBehaviour vb) {
Debug.Log("button Pressed");
zombie.GetComponent<Animation> ().Play ();
}
public void OnButtonReleased(VirtualButtonAbstractBehaviour vb) {
zombie.GetComponent<Animation> ().Stop ();
}
}
错误跟踪: \ VirtualButton3 \ Assets \ Vuforia \ Editor \ Scripts \ Unzipper \ SharpZipLibUnzipper.cs(38,38):错误CS0246:找不到类型或命名空间名称“IUnzipper”(您是否缺少using指令或程序集)参考?)(CS0246)(Assembly-CSharp-Editor)