コード例 #1
0
    private void StopSceneCallback(string _, string data)
    {
        CloseProjectResponse response = JsonConvert.DeserializeObject <CloseProjectResponse>(data);

        if (!response.Result)
        {
            Notifications.Instance.ShowNotification("Going offline failed", response.Messages.FirstOrDefault());
        }
    }
コード例 #2
0
    private void StopSceneCallback(string _, string data)
    {
        CloseProjectResponse response = JsonConvert.DeserializeObject <CloseProjectResponse>(data);

        if (response.Messages != null)
        {
            CloseButton.SetInteractivity(response.Result, response.Messages.FirstOrDefault());
        }
        else
        {
            CloseButton.SetInteractivity(response.Result);
        }
    }