Exemple #1
0
    public override IEnumerator LoadData(UIAsyncRequestResult res)
    {
        LockUI("UISampleC");
        Debug.LogError(DateTime.Now.ToString() + " UISampleC LoadData Start...");
        yield return(new WaitForSeconds(2));

        Debug.LogError(DateTime.Now.ToString() + " UISampleC LoadData End...");
        UnLockUI("UISampleC");
    }
Exemple #2
0
    public override IEnumerator LoadData(UIAsyncRequestResult res)
    {
        Debug.LogError(DateTime.Now.ToString() + " UISampleB LoadData Start...");
        yield return(new WaitForSeconds(2));

        res.Success = true;
        if (!res.Success)
        {
            UIPopupMessageBox.Alert("I am Title", "I am Context...", new BtnClickCallBack(OnBtnClickOK), "yqq");
            yield return(new WaitForSeconds(1));

            UIPopupMessageBox.Alert("I am Title1", "I am Context1...", "Wait", PopupPriority.Network);
            Debug.LogError(DateTime.Now.ToString() + " UISampleB LoadData End...Fail");
        }
        else
        {
            Debug.LogError(DateTime.Now.ToString() + " UISampleB LoadData End...Success");
        }
    }