protected void DrawCreateDemoAIContents()
        {
            //  Section for new name
            CreateClientDrawer(true);

            EditorGUILayout.Space();


            if (GUILayout.Button("Create Scan AI"))
            {
                var utilityAIAsset = new UtilityAIAsset();
                var aiAsset        = utilityAIAsset.CreateAsset <ScanAIConfig>("DemoScanAI", "DemoScanAI", taskNetwork.selectAiAssetOnCreate);
                //  Add asset and client to TaskNetwork
                AddAIAsset(aiAsset);
                CloseWindow();
            }
            if (GUILayout.Button("Create Move AI"))
            {
                var utilityAIAsset = new UtilityAIAsset();
                var aiAsset        = utilityAIAsset.CreateAsset <MoveAIConfig>("DemoMoveAI", "DemoMoveAI", taskNetwork.selectAiAssetOnCreate);
                //  Add asset and client to TaskNetwork
                AddAIAsset(aiAsset);
                CloseWindow();
            }
        }
        protected void DrawWindowContents()
        {
            using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
            {
                EditorGUILayout.LabelField("New AI Name", Styles.TextCenterStyle);
                using (new EditorGUILayout.HorizontalScope())
                {
                    GUILayout.Label("Name: ", GUILayout.Width(window.minSize.x * 0.18f));
                    aiName = GUILayout.TextField(aiName);
                }
                using (new EditorGUILayout.HorizontalScope())
                {
                    if (GUILayout.Button("Ok"))
                    {
                        var utilityAIAsset = new UtilityAIAsset();
                        var aiAsset        = utilityAIAsset.CreateAsset(String.IsNullOrEmpty(aiName) || String.IsNullOrWhiteSpace(aiName) ? defaultAiID : aiName,
                                                                        String.IsNullOrEmpty(aiName) || String.IsNullOrWhiteSpace(aiName) ? defaultAiName : aiName);

                        CloseWindow();
                    }
                    if (GUILayout.Button("Cancel"))
                    {
                        CloseWindow();
                    }
                }
            }



            //var oldColor = GUI.backgroundColor;
            //GUI.backgroundColor = Color.cyan;
            if (GUILayout.Button("Create Scan AI"))
            {
                var utilityAIAsset = new UtilityAIAsset();
                var aiAsset        = utilityAIAsset.CreateAsset <ScanAIConfig>("DemoMockAI", "DemoMockAI");
                CloseWindow();
            }
            if (GUILayout.Button("Create Move AI"))
            {
                var utilityAIAsset = new UtilityAIAsset();
                var aiAsset        = utilityAIAsset.CreateAsset <MoveAIConfig>("DemoMockAI", "DemoMockAI");
                CloseWindow();
            }
            //GUI.backgroundColor = oldColor;
        }
        void CreateClientDrawer(bool isDemoAI = false)
        {
            string         _defaultAiID   = isDemoAI == false ? defaultDemoAiID : defaultAiID;
            string         _defaultAiName = isDemoAI == false ? defaultDemoAiName : defaultAiName;
            UtilityAIAsset utilityAIAsset;

            using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
            {
                EditorGUILayout.LabelField("New AI Name", Styles.TextCenterStyle);
                using (new EditorGUILayout.HorizontalScope())
                {
                    GUILayout.Label("Name: ", GUILayout.Width(windowMinSize * 0.18f));
                    aiName = GUILayout.TextField(aiName);
                }
                using (new EditorGUILayout.HorizontalScope())
                {
                    if (GUILayout.Button("Ok"))
                    {
                        //utilityAIAsset = isDemoAI == false ? new UtilityAIAsset() : new UtilityAIConfig();
                        utilityAIAsset = new UtilityAIAsset();
                        var aiAsset = utilityAIAsset.CreateAsset(String.IsNullOrEmpty(aiName) || String.IsNullOrWhiteSpace(aiName) ? _defaultAiID : aiName,
                                                                 String.IsNullOrEmpty(aiName) || String.IsNullOrWhiteSpace(aiName) ? _defaultAiName : aiName,
                                                                 taskNetwork.selectAiAssetOnCreate);
                        //  Add asset and client to TaskNetwork
                        AddAIAsset(aiAsset);
                        // -----------------------------------

                        //editor.AddUtilityAIAsset(aiAsset);
                        CloseWindow();
                    }
                    if (GUILayout.Button("Cancel"))
                    {
                        CloseWindow();
                    }
                }
            }
        }