Update: Finally I got the sound and Mecanim animations work!! Thanks to the Lynda tutorial.
This assignment was very straightforward. Adding sounds to a scene and making it 3D is intuitive in Unity and very easy. During this assignment I started working on my final project. My idea for the final project is finalized and I thought it would be good idea to start adding interactivity sounds in the project using this assignment.
I wanted to start triggering animations and sounds using the mecanim component and script. But boy, it was hard. It took a lot of time for me, almost a day, and in the end I was not able to trigger animations. I was able to trigger sound using scripts but it was not intuitive.
In the end I did not manage to trigger animations and sounds using scripts. It kept feeling like I am so close to make it work, so I kept working on it but it did not work. It was really frustrating.
So in the end I did some tweaking and had animations transition in mecanim using exit time and not boolean values in scripts. The dialogue plays immediately as soon as the scene starts.
But I have to figure this out. I am so close. If I know how to trigger animations using mecanim a major hurdle in my final project will be overcome. So I will keep on working on this. Fingers crossed.
COMMENTS