コード例 #1
0
    /// <summary>
    /// 添加MsgBox
    /// </summary>
    /// <param name="id">id</param>
    /// <param name="drawer">自定义绘制器对象</param>
    public void AddMsgBox(int id, EWMsgBoxCustomDrawer drawer)
    {
        if (m_MsgBoxs.ContainsKey(id))
        {
            Debug.LogError("错误,已经包含该ID的MsgBox方法:" + id);
            return;
        }
        EWMsgBoxObjectDrawer msgbox = new EWMsgBoxObjectDrawer(drawer);

        msgbox.Init();
        m_MsgBoxs.Add(id, msgbox);
    }
コード例 #2
0
    /// <summary>
    /// 添加MsgBox
    /// </summary>
    /// <param name="id">id</param>
    /// <param name="drawer">自定义绘制器对象</param>
    public void AddMsgBox(int id, EWMsgBoxCustomDrawer drawer)
    {
        if (m_MsgBoxs.ContainsKey(id))
        {
            Debug.LogError("Error, MsgBox method that already contains the ID:" + id);
            return;
        }
        EWMsgBoxObjectDrawer msgbox = new EWMsgBoxObjectDrawer(drawer);

        msgbox.Init();
        m_MsgBoxs.Add(id, msgbox);
    }