예제 #1
0
 void OnEnable()
 {
     D.assert(_wrapper == null);
     _configurations = new Configurations();
     _wrapper        = new UIWidgetsPanelWrapper();
     onEnable();
     _wrapper.Initiate(this, width: _currentWidth, height: _currentHeight, dpr: _currentDevicePixelRatio,
                       _configurations: _configurations);
     _configurations.Clear();
     Input_OnEnable();
 }
예제 #2
0
        void OnEnable()
        {
            D.assert(_wrapper == null);

            //enable listener to MouseMoveEvents by default
            //user can disable it in onEnable() if needed
            wantsMouseMove = true;

            _configurations = new Configurations();
            _wrapper        = new UIWidgetsPanelWrapper();
            onEnable();
            _wrapper.Initiate(this, width: _currentWidth, height: _currentHeight, dpr: _currentDevicePixelRatio,
                              _configurations: _configurations);
            _configurations.Clear();
            Input_OnEnable();
        }