using FairyGUI;
using XGame.Framework.UI;

namespace XGame.Framework.FGUI
{
    public class FguiPanel : IUIPanel
    {
        private GComponent _panel;
        private UILayer _layer;
        public FguiPanel(GComponent uiPanel, UILayer layer)
        {
            _panel = uiPanel;
            _layer = layer;
        }
        public GComponent Panel => _panel;
        #region IUIPanel ½Ó¿ÚÊµÏÖ
        UILayer IUIPanel.Layer => _layer;

        void IUIPanel.SetActive(bool isActive)
        {
            _panel.displayObject.gameObject.SetActive(isActive);
        }
        #endregion
    }
}

