public void Draw()
    {
        GUILayout.BeginVertical();
        {
            previewCharacterSource = (GameObject)EditorGUILayout.ObjectField(previewCharacterSource, typeof(GameObject), false);

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Create"))
            {
                if (this.player != null)
                {
                    GameObject.Destroy(this.player.gameObject);
                    this.player = null;
                }
                this.player = (GameObject.Instantiate(previewCharacterSource) as GameObject).AddComponent <GfxObject>();
                GameObject cam = GameObject.Find("Main Camera");
                if (cam == null)
                {
                    cam = new GameObject("Main Camera");
                }
                GameCamera game_c = cam.GetComponent <GameCamera>();
                game_c.m_Target = this.player.transform;
                // GameObject ingameObj = GameObject.Instantiate(Resources.Load("Scene/InGame")) as GameObject;
                // InGameManager.I.GameCamera = game_c.GetComponent<Camera>();
            }
            if (GUILayout.Button("Play"))
            {
                if (this.player != null)
                {
                    // ActionExcute.Create(this , this.player);
                    this.player.transform.localPosition = Vector3.zero;
                    this.player.transform.localRotation = Quaternion.identity;
                    this.player.SkillState(this);
                }
            }
            this.m_IsLookTarget = GUILayout.Toggle(this.m_IsLookTarget, "LookTarget");
            if (GUILayout.Button("+ ActionObject"))
            {
                ActionObject ao = new ActionObject();
                this.m_ActionObjects.Add(ao);
            }
            GUILayout.EndHorizontal();
        }
        {
            GUILayout.BeginVertical();
            if (m_ActionObjects != null)
            {
                for (int i = 0; i < this.m_ActionObjects.Count; i++)
                {
                    ActionObject ao = this.m_ActionObjects[i];
                    ao.Draw(this);
                }
            }
            GUILayout.EndVertical();
        }
        GUILayout.EndVertical();
    }
    public void Draw()
    {
        GUILayout.BeginVertical();
        {
            previewCharacterSource = (GameObject)EditorGUILayout.ObjectField(previewCharacterSource, typeof(GameObject), false);

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Create"))
            {
                if (this.player != null)
                {
                    GameObject.Destroy(this.player.gameObject);
                    this.player = null;
                }
                this.player = (GameObject.Instantiate(previewCharacterSource) as GameObject).AddComponent <ActionCustomObject>();
                GameObject cam = GameObject.Find("Main Camera");
                if (cam == null)
                {
                    cam = new GameObject("Main Camera");
                }
                TempSkillEditorCamera game_c = cam.GetComponent <TempSkillEditorCamera>();
                game_c.m_Target = this.player.transform;
                // GameObject ingameObj = GameObject.Instantiate(Resources.Load("Scene/InGame")) as GameObject;
                // InGameManager.I.GameCamera = game_c.GetComponent<Camera>();
            }
            if (GUILayout.Button("Reset"))
            {
                this.player.transform.localPosition = Vector3.zero;
                this.player.transform.localRotation = Quaternion.identity;
            }
            if (GUILayout.Button("Play"))
            {
                if (this.player != null)
                {
                    // ActionExcute.Create(this , this.player);
                    this.player.transform.localPosition = Vector3.zero;
                    this.player.transform.localRotation = Quaternion.identity;
                    // this.player.PlayAction(this);
                    ActionExcuteManager.instance.StartAction(m_ActionObject, this.player);
                }
            }
            GUILayout.EndHorizontal();
        }
        {
            GUILayout.BeginVertical();
            if (m_ActionObject != null)
            {
                m_ActionObject.Draw(this);
            }
            GUILayout.EndVertical();

            // GUILayout.BeginVertical();
            // if(m_ActionObjects != null)
            // {
            //  for( int i = 0 ; i<this.m_ActionObjects.Count ; i++ )
            //  {
            //      ActionObject ao = this.m_ActionObjects[i];
            //      ao.Draw( this );
            //  }
            // }
            // GUILayout.EndVertical();
        }
        GUILayout.EndVertical();
    }