Last active
August 29, 2015 14:05
-
-
Save pnegri/b0a5e5e28499f22f2df3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call super | |
SCompoundWidget::Tick(AllottedGeometry, InCurrentTime, InDeltaTime); | |
if (!OwnerHUD.IsValid()) return; | |
if (!OwnerHUD->PlayerOwner) return; | |
if (!OwnerHUD->PlayerOwner->GetPawn()) return; | |
AGameCharacter *hCharacter = Cast<AGameCharacter>(OwnerHUD->PlayerOwner->GetPawn()); | |
if (!hCharacter) return; | |
hActorInstance = hCharacter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// O que por dentro do GetStrength depois que texto aparecer | |
if (!hActorInstance->IsValid()) return FText::FromString(TEXT("---")); | |
AGameCharacter *hCharacter = *hActorInstance; | |
return FText::FromString( FString::Printf(TEXT("%d"), hCharacter->Strength ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment