Drum sounds does not start every single time a TriggerTouch happens. Specific and temporary logic for play test.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user