Пример #1
0
        private void DrawBone()
        {
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            string str  = "未選択";
            bool   flag = CommonUIData.bone;

            if (flag)
            {
                str = CommonUIData.bone.name;
            }
            GUILayout.Label("ボーン:" + str, UIParams.Instance.lStyle, new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            bool flag2 = !CommonUIData.bone || !CommonUIData.obj || !BackUpData.GetBoneDataExist(CommonUIData.obj, CommonUIData.bone);

            if (flag2)
            {
                GUI.enabled = false;
            }
            bool flag3 = GUILayout.Button("R", UIParams.Instance.bStyle, new GUILayoutOption[0]);

            if (flag3)
            {
                BackUpData.RestoreBone(CommonUIData.obj, CommonUIData.bone);
                BackUpData.Refresh();
            }
            GUI.enabled = true;
            GUILayout.EndHorizontal();
            UIUtil.BeginIndentArea();
            this.DrawTransform();
            UIUtil.EndoIndentArea();
        }