mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 17:58:20 +00:00
Use consistent calling
try to always have the first parameter match how you got the script for readability
This commit is contained in:
parent
946b59f02f
commit
90ac91e0df
@ -183,7 +183,7 @@ void MovingPlatformComponent::StartPathing() {
|
|||||||
const auto travelNext = subComponent->mWaitTime + travelTime;
|
const auto travelNext = subComponent->mWaitTime + travelTime;
|
||||||
|
|
||||||
m_Parent->AddCallbackTimer(travelTime, [subComponent, this] {
|
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] {
|
m_Parent->AddCallbackTimer(travelNext, [this] {
|
||||||
@ -293,7 +293,7 @@ void MovingPlatformComponent::ContinuePathing() {
|
|||||||
const auto travelNext = subComponent->mWaitTime + travelTime;
|
const auto travelNext = subComponent->mWaitTime + travelTime;
|
||||||
|
|
||||||
m_Parent->AddCallbackTimer(travelTime, [subComponent, this] {
|
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] {
|
m_Parent->AddCallbackTimer(travelNext, [this] {
|
||||||
|
Loading…
Reference in New Issue
Block a user