From a5fef8f5e003d5090061ea46b056ec75119df773 Mon Sep 17 00:00:00 2001 From: Noah4ever <66632359+Noah4ever@users.noreply.github.com> Date: Mon, 22 Nov 2021 16:26:15 +0100 Subject: [PATCH] idk --- Assets/Prefabs/Player/Player Animation Test.prefab | 2 +- Assets/Scripts/Weapons/WeaponManager.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Prefabs/Player/Player Animation Test.prefab b/Assets/Prefabs/Player/Player Animation Test.prefab index ed635a1..192d056 100644 --- a/Assets/Prefabs/Player/Player Animation Test.prefab +++ b/Assets/Prefabs/Player/Player Animation Test.prefab @@ -601,7 +601,7 @@ MonoBehaviour: syncMode: 0 syncInterval: 0.1 stepAmplitudeWalking: 0.02 - stepAmplitudeSprinting: 0.07 + stepAmplitudeSprinting: 0.04 stepFrequency: 0.3 playerController: {fileID: -4574526707603160507} currentCameraRecoilX: 0 diff --git a/Assets/Scripts/Weapons/WeaponManager.cs b/Assets/Scripts/Weapons/WeaponManager.cs index 5bff3df..82c42ff 100644 --- a/Assets/Scripts/Weapons/WeaponManager.cs +++ b/Assets/Scripts/Weapons/WeaponManager.cs @@ -83,11 +83,11 @@ public class WeaponManager : NetworkBehaviour bool condition = true; if (lastActive <= -1) { lastActive = size; } if(lastActive >= l.Count) { lastActive = 0; } - for (int i = lastActive+direction; condition; i+= direction) { + for (int i = lastActive+direction; condition; i+=direction) { if (i >= l.Count) { i = 0; size = lastActive; } else if(i < 0) { i = size-1; size = -1; } if (l[i] != null) { - if(l[lastActive] != null) { Debug.Log("SetActive(False)"); l[lastActive].SetActive(false); } + if(l[lastActive] != null) { l[lastActive].SetActive(false); } return i; } if (direction == 1) {