mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-18 21:38:08 +00:00
pass model component to update
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user