public void Trigger() { Sprite.SetCurrentAnimation(TriggerAnimation, true); SoundManager.PlaySound(ContentPaths.Audio.Oscar.sfx_trap_trigger, GlobalTransform.Translation, false); ShouldDie = true; DeathTimer.Reset(DeathTimer.TargetTimeSeconds); }
public void Trigger() { Sprite.SetCurrentAnimation(TriggerAnimation, true); SoundManager.PlaySound(ContentPaths.Audio.Oscar.sfx_trap_trigger, GlobalTransform.Translation, false); ShouldDie = true; DeathTimer.Reset(DeathTimer.TargetTimeSeconds); }