35 lines
767 B
C++
35 lines
767 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Animation/AnimInstance.h"
|
|
#include "WalkAnimInstance.generated.h"
|
|
|
|
class APawn;
|
|
class UPawnMovementComponent;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class FRAY_API UWalkAnimInstance : public UAnimInstance
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Movement")
|
|
float Speed;
|
|
|
|
UPROPERTY(VisibleInstanceOnly, BlueprintReadOnly, Category = "Movement")
|
|
APawn* Pawn;
|
|
|
|
UPROPERTY(VisibleInstanceOnly, BlueprintReadOnly, Category = "Movement")
|
|
UPawnMovementComponent* MovementComponent;
|
|
|
|
virtual void NativeInitializeAnimation() override;
|
|
|
|
virtual void NativeUpdateAnimation(float DeltaSeconds) override;
|
|
|
|
};
|