Using Application.dataPath, I could find a folder within the project folder. System.IO.Directory.GetParent brought it back to the project folder; adding the file:/// and the string from the Xml created a url.
Using the WWW class, using a url to load images and sounds and the xml file from the folder or even from a website.
For the audio, I chose to use separate variables so it would be easier to reference in other scripts, rather than remembering specific element.
No comments:
Post a Comment