Пример #1
0
        private void OnEnable()
        {
            drawersFactory            = new ParameterDrawersFactory();
            footer                    = new UITestToolWindowFooter();
            isOpen                    = true;
            normalIconTexture         = Resources.Load("test_record_color") as Texture;
            normalIconContent         = new GUIContent("Recorder", normalIconTexture);
            grayscaleIconTexture      = Resources.Load("test_record_grayscale") as Texture;
            grayscaleIconContent      = new GUIContent("Recorder", grayscaleIconTexture);
            EditorApplication.update += DoUpdate;
            if (controller == null)
            {
                controller = new UITestUserFlowRecorderController();
            }
            //            CreateFakeActions();

            if (twoSectionDrawer == null)
            {
                twoSectionDrawer = new TwoSectionWithSliderDrawer(
                    70,
                    50,
                    int.MaxValue
                    );
            }
        }
Пример #2
0
        private void OnEnable()
        {
            footer = new UITestToolWindowFooter();
            if (twoSectionDrawer == null)
            {
                twoSectionDrawer = new TwoSectionWithSliderDrawer(
                    50,
                    50,
                    int.MaxValue
                    );
            }
            LoadImgs();

            PlayModeTestRunner.OnMethodStateUpdated += Repaint;
            TestStep.OnTestStepUpdated += Repaint;
            EditorApplication.update   += OnEditorUpdate;
        }