Added in-dialogue sounds

This commit is contained in:
Gerard Gascón 2022-09-22 13:52:08 +02:00 committed by GitHub
parent 1fde00e811
commit 10cccc9b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 5 deletions

View file

@ -134,6 +134,9 @@ namespace SimpleTools.DialogueSystem {
case DialogueCommandType.TextSpeedChange:
secondsPerCharacter = 1f / command.floatValue;
break;
case DialogueCommandType.Sound:
AudioManager.AudioManager.instance.PlayOneShot(command.stringValue);
break;
}
commands.RemoveAt(i);
i--;