mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 12:52:07 +01:00
Weapon switching
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user