diff --git a/Code/Game/DanBiasGame/DanBiasGame_Impl.cpp b/Code/Game/DanBiasGame/DanBiasGame_Impl.cpp index 4a54297f..24c14a0c 100644 --- a/Code/Game/DanBiasGame/DanBiasGame_Impl.cpp +++ b/Code/Game/DanBiasGame/DanBiasGame_Impl.cpp @@ -17,6 +17,9 @@ #include "vld.h" #include "GameClientRecieverFunc.h" +#include "../Misc/EventHandler/EventHandler.h" +using namespace Oyster::Event; + namespace DanBias { @@ -130,6 +133,8 @@ namespace DanBias HRESULT DanBiasGame::Update(float deltaTime) { + EventHandler::Instance(); + if(m_data->recieverObj->IsConnected()) m_data->recieverObj->Update(); diff --git a/Code/Misc/EventHandler/EventHandler.h b/Code/Misc/EventHandler/EventHandler.h index 1a438e8c..e19a8149 100644 --- a/Code/Misc/EventHandler/EventHandler.h +++ b/Code/Misc/EventHandler/EventHandler.h @@ -17,7 +17,7 @@ namespace Oyster EventHandler(); ~EventHandler(); - EventHandler& Instance(); + static EventHandler& Instance(); void Update(InputClass* inputObject);