public void Initialize(GlowingButton button)
        {
            Teardown();

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return(UnityEditor.ActiveEditorTracker.sharedTracker.isLocked && LedFunctions.LedFlashing.fast.GetLedState(button));
            });

            _button = button;
            _button.onKeyStateChanged += OnButtonStateChanged;
            _button.ledFunction        = _defaultLedFunction;
        }
Exemplo n.º 2
0
        public void Initialize(GlowingButton button)
        {
            Teardown();

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return((Selection.gameObjects.Length > 0) && Selection.gameObjects.All((x) => x.activeSelf == true));
            });

            _button = button;
            _button.onKeyStateChanged += OnButtonStateChanged;
            _button.ledFunction        = _defaultLedFunction;
        }
        public void Initialize(GlowingButton button)
        {
            Teardown();

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return(SceneView.lastActiveSceneView != null && SceneView.lastActiveSceneView.drawGizmos);
            });

            _button = button;
            _button.onKeyStateChanged += OnButtonStateChanged;
            _button.ledFunction        = _defaultLedFunction;
        }