Example #1
0
        private void OnSelectionChange()
        {
            if (Selection.activeGameObject == null)
            {
                return;
            }

            backend.CheckCurrentSelection();

            Repaint();
        }
Example #2
0
        private void OnEnable()
        {
            log("Workflow Enabled");

            var availableBackend = FindOrCreateBackend();

            if (backend != null && backend.GetInstanceID() != availableBackend.GetInstanceID())
            {
                log("Found old backend - destroy it...");
                DestroyImmediate(backend);
                backend = null;
            }

            backend = availableBackend;

            backend.CheckCurrentSelection();
        }