diff --git a/Content/Blueprints/BP_TestChar.uasset b/Content/Blueprints/BP_TestChar.uasset new file mode 100644 index 0000000..7a1ca35 --- /dev/null +++ b/Content/Blueprints/BP_TestChar.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be243ef9f195422aa7e09f02a772da1a508a0f622920a7327bcb3afae34cfc8e +size 66471 diff --git a/Content/Blueprints/BP_TestCtl.uasset b/Content/Blueprints/BP_TestCtl.uasset new file mode 100644 index 0000000..488e40a --- /dev/null +++ b/Content/Blueprints/BP_TestCtl.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bcb3c66b3e5f077f8ec43eeb2d4af3fc16adb07cf1ce05ed8b5d5cc5fea8b6a +size 40403 diff --git a/Content/Blueprints/BP_TestMode.uasset b/Content/Blueprints/BP_TestMode.uasset new file mode 100644 index 0000000..901f2eb --- /dev/null +++ b/Content/Blueprints/BP_TestMode.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ba33a801485c4c0f44ab490921b775747a1bad49945eb190d33c197748839ac +size 21020 diff --git a/Content/地图关卡/Map_City.umap b/Content/地图关卡/Map_City.umap index a850156..6c02801 100644 Binary files a/Content/地图关卡/Map_City.umap and b/Content/地图关卡/Map_City.umap differ diff --git a/Source/lonese/MyPlayerController.cpp b/Source/lonese/MyPlayerController.cpp new file mode 100644 index 0000000..2716e2b --- /dev/null +++ b/Source/lonese/MyPlayerController.cpp @@ -0,0 +1,14 @@ +// Fill out your copyright notice in the Description page of Project Settings. + + +#include "MyPlayerController.h" + +APawn* AMyPlayerController::GetOwnedPawn() +{ + return GetPawn(); +} + +void AMyPlayerController::BeginPlay() +{ + //GetPawn()->SetActorLocation(FVector(0.f, 0.f, 300.f)); +} diff --git a/Source/lonese/MyPlayerController.h b/Source/lonese/MyPlayerController.h new file mode 100644 index 0000000..213f950 --- /dev/null +++ b/Source/lonese/MyPlayerController.h @@ -0,0 +1,26 @@ +// Fill out your copyright notice in the Description page of Project Settings. + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/PlayerController.h" +#include "MyPlayerController.generated.h" + +/** + * + */ +UCLASS() +class LONESE_API AMyPlayerController : public APlayerController +{ + GENERATED_BODY() + +public: + UFUNCTION(BlueprintCallable) + APawn* GetOwnedPawn(); + +protected: + virtual void BeginPlay() override; + +private: + +};