Primitive Resentment 3D 1st Update Amendment
- timhinshelwood
- Jan 30, 2022
- 1 min read
After the First Update I noted that Audio had still not been implemented. Thankfully, this is now fixed, after a full reimport of Unity's Assets, I was able to get the function to work properly, and in Hindsight, it was pretty easy. The script now takes in a list of Audio Clips from each conversations scriptable object, and cycles through this list with an index, the same as the way Names, Dialogues and Portraits work. It will then play each clip when cycling text, which also cuts off any already playing dialogue sounds automatically. The script then simply takes the AudioClip from the list equal to the current index, sets the AudioSource.Clip on the cameras audio source to be the pulled clip and plays it. A simple system, if not a bit messy, but it works as a prototyping tool regardless. The only functionality left is to call events after a conversation ends, however that comes after the implementation of other key systems.
Comments