示例#1
0
    public bool ExistFile(string pluginName, string fileName)
    {
        if (actualRunMode == LuaRunMode.AssetBundle)
        {
            pluginName = pluginName.ToLower();
        }
        string pluginPath = SearchPluginPath(pluginName);

        if (pluginPath == null)
        {
            return(false);
        }
        string fullPath = System.IO.Path.Combine(pluginPath, fileName);

        if (actualRunMode == LuaRunMode.Editor)
        {
            return(File.Exists(fullPath + ".lua"));
        }
        else
        {
            return(bundleManager.Contains(pluginName, fullPath + ".lua.txt"));
        }
    }