From 193c6775eb0bb96b3d87f1a1932184d42383eab8 Mon Sep 17 00:00:00 2001 From: "PCYPC\\pcy35" Date: Fri, 28 Jul 2023 17:44:32 +0900 Subject: [PATCH] =?UTF-8?q?[=EB=B0=95=EC=B9=98=EC=98=81]=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- D1.uproject | 8 ++++++++ Source/D1/Actor/BaseEquippable.cpp | 2 +- Source/D1/CombatCharacter.cpp | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/D1.uproject b/D1.uproject index f3e2dc39..da7abcd1 100644 --- a/D1.uproject +++ b/D1.uproject @@ -20,6 +20,14 @@ "TargetAllowList": [ "Editor" ] + }, + { + "Name": "VisualStudioTools", + "Enabled": true, + "MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/362651520df94e4fa65492dbcba44ae2", + "SupportedTargetPlatforms": [ + "Win64" + ] } ] } \ No newline at end of file diff --git a/Source/D1/Actor/BaseEquippable.cpp b/Source/D1/Actor/BaseEquippable.cpp index 38e1e770..d1819e7a 100644 --- a/Source/D1/Actor/BaseEquippable.cpp +++ b/Source/D1/Actor/BaseEquippable.cpp @@ -33,7 +33,7 @@ void ABaseEquippable::AttachActor(const FName SocketName) void ABaseEquippable::OnEquipped() { - bIsEquipped = true; + SetIsEquipped(true); AttachToActor(this, FAttachmentTransformRules::SnapToTargetNotIncludingScale, AttachSocketName); } diff --git a/Source/D1/CombatCharacter.cpp b/Source/D1/CombatCharacter.cpp index 1f4089b2..a02762f5 100644 --- a/Source/D1/CombatCharacter.cpp +++ b/Source/D1/CombatCharacter.cpp @@ -169,10 +169,10 @@ void ACombatCharacter::ToggleCombat(const FInputActionValue& Value) bool bInput = Value.Get(); ABaseWeapon* baseWeapon = CombatComponent->GetMainWeapon(); - bool isCombatEnabled = CombatComponent->GetCombatEnabled(); if (!baseWeapon) return; + bool isCombatEnabled = CombatComponent->GetCombatEnabled(); if (!isCombatEnabled) PlayAnimMontage(baseWeapon->GetEnterCombat()); else