Added commision objectives
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "Components/WidgetComponent.h"
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
#include "NakedDesire/Clothing/ClothingItemDefinition.h"
|
||||
#include "NakedDesire/Clothing/DroppedClothingSubsystem.h"
|
||||
#include "NakedDesire/Clothing/ClothingItemInstance.h"
|
||||
#include "NakedDesire/Clothing/ClothingManager.h"
|
||||
#include "NakedDesire/Player/NakedDesireCharacter.h"
|
||||
@@ -63,8 +64,19 @@ void AItemPickup::ShowInteractionProximityHint_Implementation()
|
||||
void AItemPickup::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
|
||||
InteractionHint->SetVisibility(false);
|
||||
|
||||
if (UDroppedClothingSubsystem* Dropped = GetWorld()->GetSubsystem<UDroppedClothingSubsystem>())
|
||||
Dropped->RegisterPickup(this);
|
||||
}
|
||||
|
||||
void AItemPickup::EndPlay(const EEndPlayReason::Type EndPlayReason)
|
||||
{
|
||||
if (UDroppedClothingSubsystem* Dropped = GetWorld()->GetSubsystem<UDroppedClothingSubsystem>())
|
||||
Dropped->UnregisterPickup(this);
|
||||
|
||||
Super::EndPlay(EndPlayReason);
|
||||
}
|
||||
|
||||
void AItemPickup::SetItem(UClothingItemInstance* InItem)
|
||||
|
||||
Reference in New Issue
Block a user