Esempio n. 1
0
 void OnDestroy()
 {
     D.assert(_wrapper != null);
     _wrapper?.Destroy();
     _wrapper = null;
     Input_OnDisable();
 }
Esempio n. 2
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();
 }
Esempio n. 3
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();
        }