Lesson 105 - Set up move to click.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "Character/AuraCharacterBase.h"
|
||||
#include "AbilitySystemComponent.h"
|
||||
#include "AbilitySystem/AuraAbilitySystemComponent.h"
|
||||
|
||||
AAuraCharacterBase::AAuraCharacterBase()
|
||||
{
|
||||
@@ -47,4 +48,13 @@ void AAuraCharacterBase::InitializeDefaultAttributes() const
|
||||
ApplyEffectToSelf(DefaultVitalAttributes, 1.f);
|
||||
}
|
||||
|
||||
void AAuraCharacterBase::AddCharacterAbilities()
|
||||
{
|
||||
UAuraAbilitySystemComponent* AuraASC = CastChecked<UAuraAbilitySystemComponent>(AbilitySystemComponent);
|
||||
if (!HasAuthority()) return;
|
||||
|
||||
AuraASC->AddCharacterAbilities(StartupAbilities);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user