Weapon switching

This commit is contained in:
Noah4ever
2021-11-16 13:06:10 +01:00
parent eaee767535
commit 7299b292a7

View File

@@ -36,7 +36,7 @@ public class WeaponManager : NetworkBehaviour
currentWeaponIndex--;
}
counter++;
Debug.Log(activeWeapons[currentWeaponIndex]);
//Debug.Log(activeWeapons[currentWeaponIndex]);
} while (activeWeapons[currentWeaponIndex] == null);
}
else if (Input.GetAxis("Mouse ScrollWheel") < 0f){ // Scroll down
@@ -51,7 +51,7 @@ public class WeaponManager : NetworkBehaviour
currentWeaponIndex++;
}
counter++;
Debug.Log(activeWeapons[currentWeaponIndex]);
//Debug.Log(activeWeapons[currentWeaponIndex]);
} while (activeWeapons[currentWeaponIndex] == null);
}