PlaySFX now uses Position instead of Emitter ID for playing a sound.
This commit is contained in:
@@ -20,7 +20,7 @@ bool Systems::DebugSystem::OnKeyDown(const Events::KeyDown &event)
|
||||
if (event.KeyCode == GLFW_KEY_ENTER)
|
||||
{
|
||||
Events::PlaySFX e;
|
||||
e.Emitter = 0;
|
||||
e.Position = glm::vec3(0);
|
||||
e.Resource = "Sounds/korvring.wav";
|
||||
EventBroker->Publish<Events::PlaySFX>(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user