private void DrawObject() { GUILayout.BeginHorizontal(new GUILayoutOption[0]); bool flag = CommonUIData.obj; if (flag) { string name = CommonUIData.obj.name; } GUILayout.Label("オブジェクト:", UIParams.Instance.lStyle, new GUILayoutOption[0]); GUILayout.FlexibleSpace(); this.objectSelectUI.DrawCombo(); bool flag2 = !CommonUIData.obj || !BackUpData.GetObjectDataExist(CommonUIData.obj); if (flag2) { GUI.enabled = false; } bool flag3 = GUILayout.Button("R", UIParams.Instance.bStyle, new GUILayoutOption[0]); if (flag3) { BackUpData.RestoreObject(CommonUIData.obj); BackUpData.Refresh(); } GUI.enabled = true; GUILayout.EndHorizontal(); UIUtil.BeginIndentArea(); this.DrawImportExport(); UIUtil.EndoIndentArea(); UIUtil.BeginIndentArea(); this.DrawBone(); UIUtil.EndoIndentArea(); }
public static bool GetBoneDataExist(GameObject obj, Transform bone) { bool flag = !BackUpData.GetObjectDataExist(obj); bool result; if (flag) { result = false; } else { bool flag2 = !BackUpData.objectDataDic[obj].boneDataDic.ContainsKey(bone); result = !flag2; } return(result); }