Use consistent calling

try to always have the first parameter match how you got the script for readability
This commit is contained in:
David Markowitz 2024-03-06 03:23:37 -08:00
parent 946b59f02f
commit 90ac91e0df

View File

@ -183,7 +183,7 @@ void MovingPlatformComponent::StartPathing() {
const auto travelNext = subComponent->mWaitTime + travelTime;
m_Parent->AddCallbackTimer(travelTime, [subComponent, this] {
GetParent()->GetScript()->OnWaypointReached(m_Parent, subComponent->mNextWaypointIndex);
this->m_Parent->GetScript()->OnWaypointReached(m_Parent, subComponent->mNextWaypointIndex);
});
m_Parent->AddCallbackTimer(travelNext, [this] {
@ -293,7 +293,7 @@ void MovingPlatformComponent::ContinuePathing() {
const auto travelNext = subComponent->mWaitTime + travelTime;
m_Parent->AddCallbackTimer(travelTime, [subComponent, this] {
this->GetParent()->GetScript()->OnWaypointReached(m_Parent, subComponent->mNextWaypointIndex);
this->m_Parent->GetScript()->OnWaypointReached(m_Parent, subComponent->mNextWaypointIndex);
});
m_Parent->AddCallbackTimer(travelNext, [this] {