diff --git a/Binaries/Win64/UnrealEditor-FirstPersonDemo.dll b/Binaries/Win64/UnrealEditor-FirstPersonDemo.dll index 596705b..be81efe 100644 --- a/Binaries/Win64/UnrealEditor-FirstPersonDemo.dll +++ b/Binaries/Win64/UnrealEditor-FirstPersonDemo.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b140d8683ea76c6a9d8654f5ab2e936b05ebab42c1c461d924906059f3f2572a -size 720384 +oid sha256:8de36789f7f4e40e0c92691907fc5b2aea3f78cc72e08149c55e57817e36ce7f +size 719360 diff --git a/Content/Surviver/Blueprints/BP_SurviverPlayerCharacter.uasset b/Content/Surviver/Blueprints/BP_SurviverPlayerCharacter.uasset index 0af6d67..d561d9e 100644 --- a/Content/Surviver/Blueprints/BP_SurviverPlayerCharacter.uasset +++ b/Content/Surviver/Blueprints/BP_SurviverPlayerCharacter.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b90fe94dfd626e3060d1034ac1d4e5eef1d1344903ddc786bc5b0b044d40b171 -size 38493 +oid sha256:8f500f3f49b58cf5c9cb15aafac14e198eb7140f23d76bdf5d31e96c90ad306c +size 38716 diff --git a/Source/FirstPersonDemo/Surviver_FPS/Documentation.h b/Source/FirstPersonDemo/Surviver_FPS/Documentation.h index 0cf01b0..fa831d0 100644 --- a/Source/FirstPersonDemo/Surviver_FPS/Documentation.h +++ b/Source/FirstPersonDemo/Surviver_FPS/Documentation.h @@ -13,4 +13,9 @@ /** * @defgroup UI 用户界面系统 * 包含所有用户界面相关类。 - */ \ No newline at end of file + */ + +/** + * @defgroup UnitTest 单元测试 + * 包含所有自动化单元测试类。 + * / diff --git a/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.cpp b/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.cpp index c7eb615..6b77561 100644 --- a/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.cpp +++ b/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.cpp @@ -32,17 +32,9 @@ ASurviverPlayer::ASurviverPlayer() { // Set size for collision capsule GetCapsuleComponent()->InitCapsuleSize(55.f, 96.0f); - // Create the first person mesh that will be viewed only by this character's owner - // CharacterMesh = CreateDefaultSubobject(TEXT("角色 Mesh")); - // CharacterMesh->SetupAttachment(GetMesh()); - // CharacterMesh->SetOnlyOwnerSee(true); - // CharacterMesh->FirstPersonPrimitiveType = EFirstPersonPrimitiveType::FirstPerson; - // CharacterMesh->SetCollisionProfileName(FName("NoCollision")); - // Create the Camera Component CharacterCameraComponent = CreateDefaultSubobject(TEXT("First Person Camera")); - // CharacterCameraComponent->SetupAttachment(CharacterMesh, FName("head")); - // CharacterCameraComponent->SetupAttachment(this->GetMesh(), FName("head")); + CharacterCameraComponent->SetupAttachment(this->GetMesh(), FName("head")); CharacterCameraComponent-> SetRelativeLocationAndRotation(FVector(-2.8f, 5.89f, 0.0f), FRotator(0.0f, 90.0f, -90.0f)); CharacterCameraComponent->bUsePawnControlRotation = true; diff --git a/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.h b/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.h index 0c26882..3d31037 100644 --- a/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.h +++ b/Source/FirstPersonDemo/Surviver_FPS/SurviverPlayer.h @@ -22,10 +22,6 @@ UCLASS() class FIRSTPERSONDEMO_API ASurviverPlayer : public ACharacter, public IDamageableInterface { GENERATED_BODY() - // /** Pawn mesh: first person view */ - // UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta = (AllowPrivateAccess = "true")) - // USkeletalMeshComponent* CharacterMesh; - /** First person camera */ UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta = (AllowPrivateAccess = "true")) UCameraComponent* CharacterCameraComponent;