Exemple #1
0
 protected void OnDownloadComplete(DownloadCompleteArgs arg)
 {
     if (RaiseDownloadComplete != null)
     {
         RaiseDownloadComplete(this, arg);
     }
 }
Exemple #2
0
    private void HandleDownloadComplete(object sender, DownloadCompleteArgs arg)
    {
        if (arg == null)
        {
            return;
        }
        DownloadController dlCtrl = FindObjectOfType <DownloadController>();

        if (dlCtrl != null)
        {
            dlCtrl.RaiseDownloadComplete -= HandleDownloadComplete;
        }
        if (arg.json == null)
        {
            string temp = PlayerPrefs.GetString(ConstString.JsonData, null);
            Debug.Log(temp);
            if (string.IsNullOrEmpty(temp) == true)
            {
                DisplayErrorWithMessage(" A connection is required \n on first run \n for this app to work ");
                return;
            }
        }
        SceneManager.LoadScene("FrontScene");
    }