my code :
void Update()
{
if(Input.GetButtonDown("Interact"))
{
Debug.Log("Interact");
}
}
I checked in edit> Project Settings> Input manager and there is a "Interact" button setup to the key "E". Also I am using the starter asset "First Person Controller", if that's any help.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744924924a4601374.html
评论列表(0条)