示例#1
0
    void OnUploadComplete(string name, Util.Maybe <ulong> maybeId, string id)
    {
        if (maybeId.IsEmpty())
        {
            popups.Show("Error uploading file to Steam Workshop:\n" + maybeId.GetErrorMessage(), "OK", () => { });
            DestroyImportFeedback(id);
            return;
        }

        terrainManager.AddCustomStyle(maybeId.Value, () => DestroyImportFeedback(id));
    }