From d041e9e39cb26169fc0976e6252553e7368e584e Mon Sep 17 00:00:00 2001 From: Misaki Eymard <85478846+misaki-eymard@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:38:06 +0900 Subject: [PATCH] Changed variable animation -> animationComponent in SpineboyCppPawn.cpp (#2344) --- spine-ue4/Source/SpineUE4/SpineboyCppPawn.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-ue4/Source/SpineUE4/SpineboyCppPawn.cpp b/spine-ue4/Source/SpineUE4/SpineboyCppPawn.cpp index 395ffcd07..4fd635be0 100644 --- a/spine-ue4/Source/SpineUE4/SpineboyCppPawn.cpp +++ b/spine-ue4/Source/SpineUE4/SpineboyCppPawn.cpp @@ -14,15 +14,15 @@ ASpineboyCppPawn::ASpineboyCppPawn() { // Called when the game starts or when spawned void ASpineboyCppPawn::BeginPlay() { Super::BeginPlay(); - USpineSkeletonAnimationComponent *animation = FindComponentByClass(); - animation->SetAnimation(0, FString("walk"), true); + USpineSkeletonAnimationComponent *animationComponent = FindComponentByClass(); + animationComponent->SetAnimation(0, FString("walk"), true); } // Called every frame void ASpineboyCppPawn::Tick(float DeltaTime) { Super::Tick(DeltaTime); - USpineSkeletonAnimationComponent *animation = FindComponentByClass(); - spine::AnimationState *state = animation->GetAnimationState(); + USpineSkeletonAnimationComponent *animationComponent = FindComponentByClass(); + spine::AnimationState *state = animationComponent->GetAnimationState(); spine::TrackEntry *entry = state->getCurrent(0); if (entry) { GEngine->AddOnScreenDebugMessage(-1, 0.5f, FColor::Yellow, FString(entry->getAnimation()->getName().buffer()));