How to swing knife with C# unity script : <p>I have a humanoid model (player) and it walks correctly and he is being followed by an enemy. Now I want to </p>

<p>1) add ' knife ' to my player</p>

<p>2) When hit space bar button, the player should take out knife</p>

<p>3) When hit MouseLeft Click, it should attack the enemy (if knife is out, else no attack)</p>

<p>I have absolutely no idea how to proceed in this , Can you advise the way how should i go and is there any script which can be used to do this task</p>

<p>Thanks</p>
