mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
Weapon Switch/Standard Hand
ja alles irgendwie klappt jetzt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user