Ejemplo n.º 1
0
    protected override object getExternalSound(string filepath)
    {
        var full_path = this.WorldDirectory + "/" + filepath;
        var f         = new File();

        if (!f.FileExists(full_path))
        {
            return(null);
        }
        return(GDKnyttAssetManager.loadSound(full_path));
    }
Ejemplo n.º 2
0
 protected override object getSystemSound(string filepath)
 {
     return(GDKnyttAssetManager.loadSound("res://knytt/data/" + filepath));
 }