Drum sounds does not start every single time a TriggerTouch happens. Specific and temporary logic for play test.

This commit is contained in:
stiffly
2016-02-10 11:36:54 +01:00
parent 94ff12cf66
commit 3d2f9fa79d
2 changed files with 37 additions and 11 deletions
+5
View File
@@ -39,6 +39,11 @@ private:
// Logic for playing a sound when a player jumps
void playerJumps();
// Temporary solution for play test.
bool m_DrumsIsPlaying = false;
double m_DrumTimer = 0.0;
bool drumTimer(double dt);
std::default_random_engine generator;
EventRelay<SoundSystem, Events::PlayerSpawned> m_EPlayerSpawned;