Change `CalculateHits` and `ProcessHits` from public to protected
This commit is contained in:
parent
403eff6029
commit
f7216d25f9
|
@ -212,6 +212,6 @@ void ANakatomiCharacter::CalculateHits(TArray<FHitResult>* hits)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void ANakatomiCharacter::ProcessHits(TArray<FHitResult>* hits)
|
void ANakatomiCharacter::ProcessHits(TArray<FHitResult> hits)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,9 @@ public:
|
||||||
|
|
||||||
int GetCurrentInventorySlot();
|
int GetCurrentInventorySlot();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
virtual void CalculateHits(TArray<FHitResult>* hits);
|
virtual void CalculateHits(TArray<FHitResult>* hits);
|
||||||
|
|
||||||
virtual void ProcessHits(TArray<FHitResult>* hits);
|
virtual void ProcessHits(TArray<FHitResult> hits);
|
||||||
};
|
};
|
||||||
|
|
|
@ -114,10 +114,6 @@ public:
|
||||||
|
|
||||||
void SetWalkingCallback(const FInputActionInstance& Instance);
|
void SetWalkingCallback(const FInputActionInstance& Instance);
|
||||||
|
|
||||||
virtual void CalculateHits(TArray<FHitResult>* hits) override;
|
|
||||||
|
|
||||||
virtual void ProcessHits(TArray<FHitResult> hits) override;
|
|
||||||
|
|
||||||
void WeaponSwitchingCallback(const FInputActionInstance& Instance);
|
void WeaponSwitchingCallback(const FInputActionInstance& Instance);
|
||||||
|
|
||||||
void OnFire();
|
void OnFire();
|
||||||
|
@ -131,4 +127,10 @@ public:
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable)
|
UFUNCTION(BlueprintCallable)
|
||||||
float GetCurrentHealthCount();
|
float GetCurrentHealthCount();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
virtual void CalculateHits(TArray<FHitResult>* hits) override;
|
||||||
|
|
||||||
|
virtual void ProcessHits(TArray<FHitResult> hits) override;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue