Esempio n. 1
0
    private void OnGUI()
    {
        if (GUILayout.Button("Open PopUpPanel 1000 time"))
        {
            StartCoroutine(OpenPopUnPanel1000());
        }

        if (GUILayout.Button("Stop Open"))
        {
            StopAllCoroutines();
        }

        if (GUILayout.Button("Send By Handle"))
        {
            if (handle != null)
            {
                foreach (var item in handle.Contexts)
                {
                    Debug.Log("context:" + item);
                }

                infoDic["title"] = "Handle Title";
                infoDic["info"]  = "Handle Info";
                handle.Send(infoDic);
            }
            else
            {
                Debug.Log("handel have been Released!");
            }
        }
    }
 void OpenSend(object data)
 {
     if (handle == null || !handle.Active || handle.PanelName != PanelNames.VMUsePanel)
     {
         handle = UIFacade.Instence.Open(PanelNames.VMUsePanel);
     }
     handle.Send(data);
 }