Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 public void scriptbutton()
 {
     Loaders.LoadPlayerScripts();
 }