diff --git a/Content/Blueprints/Health_Gold_UI/WBP_Health.uasset b/Content/Blueprints/Health_Gold_UI/WBP_Health.uasset index 7fc66c3..516738e 100644 --- a/Content/Blueprints/Health_Gold_UI/WBP_Health.uasset +++ b/Content/Blueprints/Health_Gold_UI/WBP_Health.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2d7ccaf051f8d3706e6e480f5aebd22ad5a2a2ea15da6a2002f35e130ac89ae3 -size 35883 +oid sha256:19c69f36533921dc7c6c9bf55bb290288d4878ab2c71f5af7f9bdba8a7aafab3 +size 28410 diff --git a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp index b5d77ed..5f69731 100644 --- a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp +++ b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.cpp @@ -16,6 +16,8 @@ ATempCharacter::ATempCharacter() PrimaryActorTick.bCanEverTick = true; Inventory = CreateDefaultSubobject("Inventory"); Inventory->MaxItemSlots = 10; + GoldBalance = GoldBalance; + Health = Health; } // Called when the game starts or when spawned diff --git a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h index a1cf05c..ae540de 100644 --- a/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h +++ b/Source/the_twilight_abyss/PlayerTemp/TempCharacter.h @@ -41,10 +41,10 @@ public: void LineTraceLogic(); - UPROPERTY(EditAnywhere, BlueprintReadOnly, Category= "Health") + UPROPERTY(BlueprintReadWrite, EditAnywhere, Category= "Health") float Health; - UPROPERTY(EditAnywhere, BlueprintReadOnly, Category= "Gold") + UPROPERTY(BlueprintReadWrite, EditAnywhere, Category= "Gold") int GoldBalance; //Using the item in the inventory