Ejemplo n.º 1
0
        sealed public override void Init()
        {
            base.Init();

            mUIHotFixer = this;

            HotFixerInteractor interacter = UIInteracterCreater?.Invoke();

            interacter.SetUIModular(mUIHotFixer);

            if (UIInteracterHandler != default)
            {
                mUI.Remove(UIModularHandler);
                mUI.Add(UIInteracterHandler);
                "log: UI {0} add modular handler (UIInteracterHandler), UI type is ".Log(mUI.ToString());
            }
            else
            {
            }

            mBridge = UIAgent.Bridge;
            mBridge.SetHotFixInteractor(interacter);

            ILRuntimeUtils.InvokeMethodILR(mUIHotFixer, UIAgent.UIModularName, "UIInit", 0);
        }
Ejemplo n.º 2
0
        protected sealed override void Purge()
        {
            if (UIInteracterHandler != default)
            {
                mUI.Remove(UIInteracterHandler);
            }
            else
            {
            }

            ILRuntimeUtils.InvokeMethodILR(mUIHotFixer, UIAgent.UIModularName, "UIExit", 0);

            mBridge     = default;
            mUIHotFixer = default;
        }
Ejemplo n.º 3
0
 public void SetUIModular(UIModularHotFixer modular)
 {
     UIModular = modular;
 }