Start of pause menu

This commit is contained in:
Kevin Poretti 2023-01-16 15:15:25 -05:00
parent a21e7e71c9
commit b02344f256
10 changed files with 30 additions and 9 deletions

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/Core/BP_GSPlayerController.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
GravityStomp/Content/Input/Actions/IA_Canel.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
GravityStomp/Content/Input/Actions/IA_Confirm.uasset (Stored with Git LFS) Normal file

Binary file not shown.

BIN
GravityStomp/Content/Input/Actions/IA_Pause.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

BIN
GravityStomp/Content/Maps/Debug/Test.umap (Stored with Git LFS)

Binary file not shown.

BIN
GravityStomp/Content/UI/InGame/WBP_PauseMenu.uasset (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -11,6 +11,7 @@
#include "EnhancedInputSubsystems.h" #include "EnhancedInputSubsystems.h"
#include "GSCharacterMovementComponent.h" #include "GSCharacterMovementComponent.h"
#include "GameFramework/PlayerState.h" #include "GameFramework/PlayerState.h"
#include "Kismet/GameplayStatics.h"
#include "Kismet/KismetMathLibrary.h" #include "Kismet/KismetMathLibrary.h"
#include "Player/GSPlayerState.h" #include "Player/GSPlayerState.h"
@ -96,6 +97,11 @@ void AGSCharacter::SetupPlayerInputComponent(class UInputComponent* PlayerInputC
void AGSCharacter::Move(const FInputActionValue& Value) void AGSCharacter::Move(const FInputActionValue& Value)
{ {
if(UGameplayStatics::GetGlobalTimeDilation(this) < 1.0f)
{
return;
}
// input is a Vector2D // input is a Vector2D
FVector2D MovementVector = Value.Get<FVector2D>(); FVector2D MovementVector = Value.Get<FVector2D>();
@ -107,7 +113,7 @@ void AGSCharacter::Move(const FInputActionValue& Value)
void AGSCharacter::ChangeGravityDirection(const FInputActionValue& Value) void AGSCharacter::ChangeGravityDirection(const FInputActionValue& Value)
{ {
if(!bCanChangeGravity) if(!bCanChangeGravity || UGameplayStatics::GetGlobalTimeDilation(this) < 1.0f)
{ {
return; return;
} }