update: player prefab
fix: pistol not firing with higher fire rate
This commit is contained in:
@@ -8,9 +8,7 @@ public class WeaponController : MonoBehaviour
|
||||
|
||||
void Start() {
|
||||
weapons = GetComponentsInChildren<Weapon>();
|
||||
for (int i = 0; i < weapons.Length; ++i) {
|
||||
if (i != currentWeapon) weapons[i].SetWeaponState(false);
|
||||
}
|
||||
if (weapons.Length > currentWeapon) weapons[currentWeapon].SetWeaponState(true);
|
||||
}
|
||||
|
||||
void Update() {
|
||||
|
||||
Reference in New Issue
Block a user