continued setup
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
|
||||
#include "DDIPlayerController.h"
|
||||
|
||||
#include "DDICharacter.h"
|
||||
#include "EnhancedInputSubsystems.h"
|
||||
#include "Engine/LocalPlayer.h"
|
||||
#include "InputMappingContext.h"
|
||||
@@ -18,4 +20,21 @@ void ADDIPlayerController::BeginPlay()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void ADDIPlayerController::SetupInputComponent()
|
||||
{
|
||||
// Super::SetupInputComponent();
|
||||
}
|
||||
|
||||
void ADDIPlayerController::OnPossess(APawn* InPawn)
|
||||
{
|
||||
Super::OnPossess(InPawn);
|
||||
|
||||
// is this a shooter character?
|
||||
if (ADDICharacter* DDICharacter = Cast<ADDICharacter>(InPawn))
|
||||
{
|
||||
// add the player tag
|
||||
DDICharacter->Tags.Add(PlayerPawnTag);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user