Example #1
0
    public void OnCheckClick()
    {
        //通用的查看出去吃数据的面板
        UIManager.GetInstance().ShowUIForm(EM_WinType.WinRandomOutFood);
        WinRandomOutFood randomPanel = UIManager.GetInstance().GetWinForm(EM_WinType.WinRandomOutFood) as WinRandomOutFood;

        if (randomPanel != null)
        {
            randomPanel.Init(m_data.V_Key);
        }
    }
Example #2
0
    public void OnRondomClick()
    {
        //得到一个随机的数据
        OutFood food = OutFoodMgr.GetInstance().Model.GetOneRandomFood();

        if (food == null)
        {
            UnityHelper.OpenAtlerWin("没有随机出来数据");
            return;
        }
        //打开随机面板,并且初始化数据
        OpenUIForm(EM_WinType.WinRandomOutFood);
        WinRandomOutFood randomPanel = UIManager.GetInstance().GetWinForm(EM_WinType.WinRandomOutFood) as WinRandomOutFood;

        if (randomPanel != null)
        {
            randomPanel.Init(food.V_Key);
        }
    }