Esempio n. 1
0
    async private void InsertRecordsAndLoadMain()
    {
        WebServiceAPI ws = new WebServiceAPI();

        ImageSavingRecords.SetActive(true);

        try
        {
            await ws.InsertRecord(StaticManager.p1);

            await ws.InsertRecord(StaticManager.p2);
        }
        catch (Exception ex) { }

        //Load scene after await
        SceneManager.LoadScene("MainMenu");
    }