Weapon Animation, Ammunition

+ fixed USP animation
+ fixed shooting with CTRL
+ added working ammunition
This commit is contained in:
Noah4ever
2021-10-18 18:13:06 +02:00
parent c4d3f8590c
commit 0c274a031f
4 changed files with 146 additions and 146 deletions

View File

@@ -33,7 +33,7 @@ public class Weapon : MonoBehaviour
{
if (Input.GetButton("Fire") && allowShoot && currentAmmunition > 0)
{
anim.Play("USP");
anim.Play("USP_Shooting");
isShooting = true;
StartCoroutine(fireRate());
fire();