pass model component to update

This commit is contained in:
David Markowitz
2024-11-03 21:40:36 -08:00
parent 56ec037eb6
commit ff1523b43f
9 changed files with 37 additions and 33 deletions

View File

@@ -69,7 +69,7 @@ void ModelComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInitialU
void ModelComponent::Update(float deltaTime) {
if (!m_Running) return;
for (auto& behavior : m_Behaviors) behavior.Update(deltaTime);
for (auto& behavior : m_Behaviors) behavior.Update(deltaTime, *this);
}
void ModelComponent::UpdatePendingBehaviorId(const int32_t newId) {