-
Notifications
You must be signed in to change notification settings - Fork 0
/
AICharacter.h
34 lines (26 loc) · 910 Bytes
/
AICharacter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Character.h"
#include "AICharacter.generated.h"
UCLASS()
class PROJECT_API AAICharacter : public ACharacter
{
GENERATED_BODY()
UFUNCTION()
void OnSeePlayer(APawn* Pawn);
public:
// Sets default values for this character's properties
AAICharacter();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input(not needed)
//virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
UPROPERTY(VisibleAnywhere,Category="AI")
class UPawnSensingComponent* PawnSensingComp;
UPROPERTY(EditAnywhere, Category = "AI")
class UBehaviorTree* BehaviorTree;
};