Пример #1
0
        public virtual void Setup(WindowBase window)
        {
            if (this.window != window)
            {
                this.window = window;

                var flowWindow = UnityEngine.UI.Windows.Plugins.Flow.FlowSystem.GetWindow(this.window, runtime: true);
                this.windowId = (flowWindow != null ? flowWindow.id : -1);

                if ((this is WindowModule) == false || (this as WindowModule).IsInstantiate() == true)
                {
                    WindowSystemResources.RegisterObject(this);
                    WindowSystem.AddDebugWeakReference(this);
                }
            }
        }