Class: PlayerSounds

Inherits:
Object
  • Object
show all
Defined in:
lib/entities/components/player_sounds.rb

Class Method Summary collapse

Class Method Details

.respawn(object, camera) ⇒ Object



3
4
5
6
# File 'lib/entities/components/player_sounds.rb', line 3

def respawn(object, camera)
  volume, pan = Utils.volume_and_pan(object, camera)
  respawn_sound.play(object.object_id, pan, volume * 0.5)
end