Added Mesh relative location to the weapon
This commit is contained in:
parent
f380b6c358
commit
43b88bdae9
@ -14,6 +14,11 @@ ULMWeaponManager::ULMWeaponManager()
|
||||
void ULMWeaponManager::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
}
|
||||
|
||||
void ULMWeaponManager::Initialize(USkeletalMeshComponent* Mesh)
|
||||
{
|
||||
SetWeaponMeshComponent(Mesh);
|
||||
|
||||
for (auto Weapon : StartingWeapons)
|
||||
{
|
||||
@ -22,14 +27,9 @@ void ULMWeaponManager::BeginPlay()
|
||||
ULMWeapon* Instance = NewObject<ULMWeapon>(this, Weapon);
|
||||
Weapons.Add(Instance);
|
||||
|
||||
Instance->Initialize();
|
||||
// Instance->Initialize(Mesh->GetRelativeLocation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ULMWeaponManager::Initialize(USkeletalMeshComponent* Mesh)
|
||||
{
|
||||
SetWeaponMeshComponent(Mesh);
|
||||
|
||||
if (!Weapons.IsEmpty())
|
||||
{
|
||||
|
Reference in New Issue
Block a user