function onGameOver()
    setPropertyFromClass('GameOverSubstate', 'characterName', 'deathrex'); --Character json file for the death animation
    setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'rexdeath'); --put in mods/sounds/
end