Пример #1
0
 public void UpdateTargetDialog(CaseSceneDialogPerson caseDialog, SceneDialogPerson data, string modelViewTarget)
 {
     if (data.Data == null)
     {
         return; //fix null:Data
     }
     //Storage.EventsUI.ListLogAdd = "UpdateTargetDialog...........";
     caseDialog.ModelViewTarget = modelViewTarget;
     caseDialog.Activate(data, true);
 }
Пример #2
0
    public CaseSceneDialogPerson CreateTargetDialog(SceneDialogPerson data, string modelViewTarget)
    {
        //CaseSceneDialogPerson caseDialog = GetFreeDialog(new SceneDialogPerson());
        CaseSceneDialogPerson caseDialog = GetFreeDialog(data, isTarget: true);

        if (caseDialog == null)
        {
            caseDialog = GetFreeDialog(isForce: true);
        }
        if (caseDialog == null)
        {
            Storage.EventsUI.ListLogAdd = "#### CASE DEBUG -- EMPTY";
            Debug.Log("######### FillDialogsFromData caseDialog is empty");
            return(null);
        }
        caseDialog.ModelViewTarget = modelViewTarget;
        caseDialog.Activate(data, true);
        return(caseDialog);
    }
Пример #3
0
    public void FillDialogsFromData()
    {
        if (!SettingsScene.AutoRefreshOn)
        {
            Storage.EventsUI.ListLogAdd = "IN DEBUG COUNT >>  " + m_collectionPersonData.Count;
        }

        while (m_collectionPersonData.Count > 0)
        {
            SceneDialogPerson data = m_collectionPersonData.Dequeue();
            if (data == null)
            {
                Debug.Log(Storage.EventsUI.ListLogAdd = "#### FillDialogsFromData -- data is EMPTY");
                break;
            }
            if (data.Data == null)
            {
                return; //fix null:Data
            }
            CaseSceneDialogPerson caseDialog = GetFreeDialog(data);
            if (caseDialog == null)
            {
                caseDialog = GetFreeDialog(isForce: true);
            }
            if (caseDialog == null)
            {
                Storage.EventsUI.ListLogAdd = "#### CASE DEBUG -- EMPTY";
                Debug.Log("######### FillDialogsFromData caseDialog is empty");
                break;
            }
            caseDialog.Activate(data);

            if (!SettingsScene.AutoRefreshOn)
            {
                Storage.EventsUI.ListLogAdd = "DEBUG ++ >> " + data.Data.NameObject;
            }
        }
    }