Skip to content

Commit

Permalink
Fixed Weapon Reload & UI Scaling
Browse files Browse the repository at this point in the history
Fixed an issue where the weapon would not check if the weapon was already full before reloading. Also fixed UI scaling on the menu and credits scenes.
  • Loading branch information
Dunnatello committed May 2, 2024
1 parent b188496 commit 630758c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ crashlytics-build.properties

UserSettings/EditorUserSettings.asset
UserSettings/Layouts/default-2021.dwlt
UserSettings/EditorUserSettings.asset
UserSettings/Layouts/default-2023.dwlt
Binary file modified Assets/Game/Scenes/Credits.unity
Binary file not shown.
Binary file modified Assets/Game/Scenes/Menu.unity
Binary file not shown.
2 changes: 0 additions & 2 deletions Assets/Game/Scripts/InGameMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public void SetGameMenuState( bool newState ) {
Cursor.visible = newState;
menuScreen.enabled = newState;

print( menuScreen.enabled );

if ( newState ) {

Cursor.lockState = CursorLockMode.None;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Game/Scripts/Weapon/Gun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private void Start( ) {
UpdateUI( );
}
public void StartReload( ) {
if ( !gunData.reloading ) {
if ( !gunData.reloading && gunData.magSize != gunData.currentAmmo ) {
StartCoroutine( Reload( ) );
}
}
Expand Down

0 comments on commit 630758c

Please sign in to comment.