Weapon Switching/pickup/throw

[+] added
+ added pickup weapons
+ added throw weapons
+ added weapon switching
+ scrolling searches for next active weapon

[n] needs to be added
n weapon in correct position after pickup
n after weapon throw -> next active weapon needs to be equipt
n throw/pickup/switch weapon animation
This commit is contained in:
Noah4ever
2021-11-20 15:47:58 +01:00
parent facc42b03f
commit a40aec3874
6 changed files with 256 additions and 118 deletions

View File

@@ -44,7 +44,7 @@ public class Shoot : NetworkBehaviour
totalAmmo = weapon.TotalAmmunition;
updateCanvas = false;
}
if (Input.GetButtonDown("Fire")) {
if (Input.GetButtonDown("Fire")) { // BOX COLLIDER AUS
updateCanvas = true;
Debug.Log(" click");
if (weapon.AllowAction && weapon.CurrentAmmunition > 0)