Hello, I’m running the Lerpz Tutorial, and I’ve added the robots to the game. I notice that Lerpz’s punch doesn’t animate when I click the left ctrl button or the left mouse button.
I’m running Vista-64. The keyboard and mouse are standard devices, not usb.
My build settings are set for windows standalone. But the problem happens in the IDE as well. I’m not getting mouse events.
I put a debug statement in the Update method of the ThirdPersonCharacterAttack.js file.
Debug.Log(“In Update()”);
I display the console and run the project. I get no messages. So the ThirdPersonCharacterAttack script is not getting executed.
The problem is that the tutorial made me update the Lerpz Player object, which disconnected it from the prefab. Forgetting that I did this, I added the component, ThirdPersonCharacterAttack, to the prefab.
So I removed the component from the prefab and added it to the Player object in the object hierarchy, and now the Fire1 event works.