Weapon Switch/Standard Hand

ja alles irgendwie
klappt jetzt
This commit is contained in:
Noah4ever
2021-11-25 11:24:16 +01:00
parent a5fef8f5e0
commit c09ff3ca75
11 changed files with 580 additions and 550 deletions

View File

@@ -27,11 +27,9 @@ public class Shoot : NetworkBehaviour
private void Start() {
if (isServer) {
weapon = weaponHolder.GetComponent<Weapon>();
shootAnim.OnSwitchWeapon(weapon.Firerate);
}
if (isLocalPlayer) {
weapon = weaponHolder.GetComponent<Weapon>();
shootAnim.OnSwitchWeapon(weapon.Firerate);
curAmmo = weapon.CurrentAmmunition;
totalAmmo = weapon.TotalAmmunition;
}