[BUG] unable to use item twice

ggs

New member
1. Third Person Controller

2. Unity version 2019.4.1f1

3.
I have equipped my character with a sword. If I use the sword and wait for the animation to finish, I am able to use it again. If I try to use the sword again while the animation is playing, it breaks the animator controller and it gets stuck on "Aim Idle". The character legs no longer work and the sword is unable to be used again.
Screenshot 2020-11-24 at 18.10.45.png
I have experienced the same issue with using a magic fireball.

Expected behaviour:
I would imagine that any number of mouse clicks during the event shouldn't be a problem. If there is a delay before being able to use the sword again, I would imagine that the controller should just register the next applicable mouse event after the delay period.

4. Steps to reproduce:

Create Nolan game object with ThirdPersonControllerDemo

Create sword

Press left mouse button twice quickly
 
Make sure you follow the video for how to setup the sword. The demo animator is looking for a combo whereas your setup doesn't have it setup:
 
Top