public void PublishSceneResult(string payload) { PublishSceneResultPayload publishSceneResultPayload = JsonUtility.FromJson <PublishSceneResultPayload>(payload); string errorMessage = ""; if (publishSceneResultPayload.ok) { OnPublishSuccess?.Invoke(); } else { errorMessage = publishSceneResultPayload.error; OnPublishError?.Invoke(publishSceneResultPayload.error); } HUDController.i.builderInWorldMainHud.PublishEnd(publishSceneResultPayload.ok, errorMessage); }
public void PublishSceneResult(string payload) { PublishSceneResultPayload publishSceneResultPayload = JsonUtility.FromJson <PublishSceneResultPayload>(payload); string message; if (publishSceneResultPayload.ok) { //Note (Adrian): This is temporary until implement the UI message = "Done!\nThe scene has been published"; OnPublishSuccess?.Invoke(); } else { message = publishSceneResultPayload.error; OnPublishError?.Invoke(publishSceneResultPayload.error); } HUDController.i.builderInWorldMainHud.PublishEnd(message); }