using FairyGUI; using XGame.Framework.UI.View; namespace XGame.Framework.FGUI { /// /// FGUI相关的操作都在IUIViewModel的实现类里 /// public abstract class FguiViewModel : IUIViewModel { protected GComponent Panel { get; private set; } public FguiViewModel(GComponent panel) { Panel = panel; BindComponents(panel); OnInited(); } /// /// 结束ui的所有tween /// public void KillTweens(bool complete = false) { GTween.Kill(Panel, complete); } protected abstract void BindComponents(GComponent panel); protected abstract void OnInited(); } }