The arrow should now track CapturePoints correctly at start and when they are captured.

This commit is contained in:
Tleety
2016-03-01 21:57:30 +01:00
parent a38c18fd3a
commit ab40fa715b
2 changed files with 82 additions and 56 deletions
@@ -8,6 +8,7 @@
#include "Common.h"
#include "Core/System.h"
#include "Core/Transform.h"
#include "Core/ECaptured.h"
class CapturePointArrowHUDSystem : public ImpureSystem
@@ -18,6 +19,12 @@ public:
virtual void Update(double dt) override;
private:
EventRelay<CapturePointArrowHUDSystem, Events::Captured> m_ECapturedEvent;
bool OnCapturePointCaptured(Events::Captured& e);
bool m_InitialtargetsSet = false;
glm::vec3 m_RedTeamCurrentTarget;
glm::vec3 m_BlueTeamCurrentTarget;
};
#endif