void loadroutine() { staticstuff.config = new Configs(); staticstuff.config = (Configs)XmlSerialization.Deserialize(Application.dataPath + "/config.xml", staticstuff.config); if (!System.IO.File.Exists(staticstuff.config.musicpath)) { Directory.CreateDirectory(staticstuff.config.musicpath); } if (!System.IO.File.Exists(staticstuff.config.scriptpath)) { Directory.CreateDirectory(staticstuff.config.scriptpath); } if (!System.IO.File.Exists(staticstuff.config.spritespath)) { Directory.CreateDirectory(staticstuff.config.spritespath); } //load musics Loaders.LoadPlayerMusic(); //load custom scripts Loaders.LoadPlayerScripts(); //load custom textures Loaders.loadTexture(); }
public void scriptbutton() { Loaders.LoadPlayerScripts(); }