Updated Gadget Workbenches to Hide Gadgets after Picking Them Up

This commit is contained in:
Rafal Swierczek 2024-05-02 13:44:41 +01:00
parent a0fd0c3269
commit dab2cb1664
8 changed files with 16 additions and 13 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db6ae7929f73b67d5f7795f3fefa56f1b77d45d4967fd77e5273dcba3dd54a45
size 1958487
oid sha256:be7cac66a963c5acd07e702b21791b2858f76e8e5bb6a05c3994a7ecd2d81d3d
size 1967015

View File

@ -90,7 +90,7 @@ void AGadgetTutorialStation::SelectGadget()
{
// Eventually expand to give player feedback of being denied if changing gadgets fails
if (!EndlessVendettaCharacter->UpdateGadgetType(GadgetsArray[GadgetIndex])) return;
HideGadgetMesh();
if (IsValid(CurrentGadgetTutorial)) CurrentGadgetTutorial->DestroyTutorial();
FActorSpawnParameters SpawnParams;

View File

@ -55,6 +55,9 @@ protected:
UFUNCTION(BlueprintCallable)
void CloseWidget();
UFUNCTION(BlueprintImplementableEvent)
void HideGadgetMesh();
public:
// Sets default values for this actor's properties
AGadgetTutorialStation();