UCLASS() class FLIGHTMODEL_API AAircraftPawn : public APawn { GENERATED_BODY() public: // Sets default values for this pawn's properties AAircraftPawn(); // Called when the game starts or when spawned virtual void BeginPlay() override; virtual void PostInitializeComponents() override; // Called every frame virtual void Tick(float DeltaSeconds) override; private: UPROPERTY(BlueprintReadOnly, Category = "Audio") USoundCue* propellerAudioCue; UPROPERTY(BlueprintReadOnly, Category = "Audio") USoundCue* propellerStartupCue; UPROPERTY(BlueprintReadOnly, Category = "Audio") UAudioComponent* propellerAudioComponent; };