Example #1
0
        public EditUIPanel(PlayTestToolkitWindow playTestToolkitWindow, PlayTest playtest) : base(playTestToolkitWindow)
        {
            originalPlayTest = playtest;
            newPlayTest      = Instantiate(playtest);
            serializedObject = new SerializedObject(playtest);

            create         = () => Create(newPlayTest);
            createAndBuild = () => CreateAndBuild(originalPlayTest);
        }
        public CopyUIPanel(PlayTestToolkitWindow playTestToolkitWindow, PlayTest playtest) : base(playTestToolkitWindow)
        {
            newPlayTest        = Instantiate(playtest);
            newPlayTest.Active = false;
            serializedObject   = new SerializedObject(newPlayTest);

            create         = () => Create(newPlayTest);
            createAndBuild = () => CreateAndBuild(newPlayTest);
        }
        public SetupUIPanel(PlayTestToolkitWindow playTestToolkitWindow) : base(playTestToolkitWindow)
        {
            newPlayTest = ScriptableObject.CreateInstance <PlayTest>();

            // TODO when switching scenes this will clear it self.
            serializedObject = new SerializedObject(newPlayTest);

            create         = () => Create(newPlayTest);
            createAndBuild = () => CreateAndBuild(newPlayTest);
        }
 protected UIPanel(PlayTestToolkitWindow playTestToolkitWindow) =>