コード例 #1
0
    /**
     * 关闭面板
     * @param key 面板唯一标识
     * @param param 参数
     *
     */
    public void close(int key, params object[] param)
    {
        if (!this.isShow(key))
        {
            return;
        }

        IBaseView view = this.getView(key);

        if (view == null)
        {
            return;
        }

        int viewIndex = this._opens.IndexOf(key);

        if (key >= 0)
        {
            this._opens.RemoveRange(viewIndex, 1);
        }

        this.closeUIPlaySound(key);

        //view.removeFromParent();
        view.close(param);
    }