Change Weapon SkeletalMesh to SkeletalMeshComponent

This commit is contained in:
Louis Hobbs 2023-02-12 20:27:25 +00:00
parent e83659123e
commit 296074d97f
2 changed files with 6 additions and 6 deletions

View File

@ -19,14 +19,14 @@ void AWeapon::BeginPlay()
}
USkeletalMeshComponent* AWeapon::GetSkeletalMesh()
USkeletalMesh* AWeapon::GetSkeletalMesh()
{
return WeaponSkeletalMesh;
}
void AWeapon::SetSkeletalMesh(USkeletalMeshComponent* USkeletalMeshComponent)
void AWeapon::SetSkeletalMesh(USkeletalMesh* USkeletalMesh)
{
WeaponSkeletalMesh = USkeletalMeshComponent;
WeaponSkeletalMesh = USkeletalMesh;
}
TEnumAsByte<WeaponState>* AWeapon::GetCurrentWeaponStatus()

View File

@ -28,7 +28,7 @@ class NAKATOMI_API AWeapon : public AActor
protected:
UPROPERTY(EditDefaultsOnly)
USkeletalMeshComponent* WeaponSkeletalMesh;
USkeletalMesh* WeaponSkeletalMesh = nullptr;
UPROPERTY(EditDefaultsOnly)
TEnumAsByte<WeaponState> CurrentWeaponStatus;
@ -57,9 +57,9 @@ protected:
virtual void BeginPlay() override;
public:
USkeletalMeshComponent* GetSkeletalMesh();
USkeletalMesh* GetSkeletalMesh();
void SetSkeletalMesh(USkeletalMeshComponent* USkeletalMeshComponent);
void SetSkeletalMesh(USkeletalMesh* USkeletalMesh);
TEnumAsByte<WeaponState>* GetCurrentWeaponStatus();