24 lines
463 B
C++
24 lines
463 B
C++
#include "PlayerCharacter.h"
|
|
|
|
#include "AbilitySystemComponent.h"
|
|
|
|
APlayerCharacter::APlayerCharacter()
|
|
{
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
|
|
bAutoAbilitySystem = false;
|
|
}
|
|
|
|
void APlayerCharacter::OnRep_PlayerState()
|
|
{
|
|
Super::OnRep_PlayerState();
|
|
|
|
AGasaPlayerState* PS = GetGasaPlayerState();
|
|
// Client setup ability system
|
|
{
|
|
AbilitySystem = PS->AbilitySystem;
|
|
Attributes = PS->Attributes;
|
|
AbilitySystem->InitAbilityActorInfo(PS, this);
|
|
}
|
|
}
|