Added a Initialize function for systems.

This commit is contained in:
stiffly
2015-12-11 14:03:00 +01:00
parent 80f028edf2
commit 0b60979c7b
6 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ void PlayerSystem::Update(World * world, ComponentWrapper & player, double dt)
bool PlayerSystem::OnKeyDown(const Events::KeyDown & event)
{
if (event.KeyCode == GLFW_KEY_P) {
if (event.KeyCode == GLFW_KEY_UP) {
m_Direction.z == -1;
}
if (event.KeyCode == GLFW_KEY_LEFT) {