示例#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));
    }
示例#2
0
 protected override object getSystemSound(string filepath)
 {
     return(GDKnyttAssetManager.loadSound("res://knytt/data/" + filepath));
 }