mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2026-07-31 07:29:02 +02:00
Weapon Switch
This commit is contained in:
@@ -47,7 +47,7 @@ public class Shoot : NetworkBehaviour
|
||||
if (Input.GetButtonDown("Fire")) {
|
||||
updateCanvas = true;
|
||||
Debug.Log(" click");
|
||||
if (weapon.AllowAction)
|
||||
if (weapon.AllowAction && weapon.CurrentAmmunition > 0)
|
||||
{
|
||||
shootAnim.Recoil(0.1f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user