Exemple #1
0
    public override void OnInspectorGUI()
    {
        var stateTable = target as FB.FFSM.StateTable;

        if (stateTable != null)
        {
            EditorGUILayout.HelpBox("从这里打开招式编辑器将不能获取动画信息", MessageType.Warning);
            if (GUILayout.Button("打开招式编辑器"))
            {
                Window_StateTable.Show(stateTable, null, null);
            }
        }
        if (this.target == null)
        {
            return;
        }
        base.OnInspectorGUI();
    }
Exemple #2
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        if (this.target == null)
        {
            return;
        }

        var con = target as FB.FFSM.com_FightFSM;

        if (con.stateTable == null)
        {
            EditorGUILayout.HelpBox("选择一张配置表,必须来自StateTable的表", MessageType.Info);
        }
        else
        {
            if (GUILayout.Button("打开招式编辑器"))
            {
                Window_StateTable.Show(con.stateTable, con.stateTree, con.GetComponent <FB.PosePlus.AniPlayer>());
            }
        }
    }