示例#1
0
    private void InitMoBan(Transform t, ResultBean[] resultBeans) // 初始化模版
    {
        GameObject go = t.gameObject;

        Ctrl_TextureInfo.AddXuLieTu(resultBeans);
        t.Find("Tu").GetComponent <UGUI_SpriteAnim>().ChangeAnim(GetSpriteList(resultBeans));
        t.GetComponent <Button>().onClick.AddListener(() =>
        {
            if (go.Equals(go_CurrentSelect) && isSelect) // 双击
            {
                go_Top.SetActive(false);
                go_Bottom.SetActive(false);
                MyEventCenter.SendEvent(E_GameEvent.ShowDuoTuInfo, EGameType.XuLieTu222, resultBeans);
            }
            else // 单击
            {
                go_CurrentSelect = go;
                Ctrl_Coroutine.Instance.StartCoroutine(CheckoubleClick());
            }
        });
    }
示例#2
0
    private void SearchAndShow(string kName, bool isAddHisetory)
    {
        // 先把之前的删除
        for (int i = 0; i < rt_Contant.childCount; i++)
        {
            Object.Destroy(rt_Contant.GetChild(i).gameObject);
        }
        // 搜索 序列图的
        Dictionary <string, ResultBean[]> dir = Ctrl_TextureInfo.SearchXLT(kName);

        if (dir.Count == 0)
        {
            anim_SearchNull.gameObject.SetActive(true);
            anim_SearchNull.DORestart();
            return;
        }
        if (isAddHisetory)
        {
            AddHistroy(kName);         // 添加到历史
        }
        Ctrl_Coroutine.Instance.StartCoroutine(CreateXuLieTu(dir));
    }