void ButtonSetting() { if (GUILayout.Button("스킬 만들기")) { generator.CreateSkill(); generator.SetSkillInfo(generator.Length() - 1); index = generator.Length() - 1; generator.InitSkillInfo(); } EditorGUILayout.Space(); if (GUILayout.Button("스킬 정보 수정")) { generator.SetSkillInfo(index); generator.InitSkillInfo(); generator.SelectSkill(index); } EditorGUILayout.Space(); if (GUILayout.Button("스킬 정보 새로고침")) { generator.InitSkillInfo(); generator.SelectSkill(index); } EditorGUILayout.Space(); if (GUILayout.Button("스킬 삭제")) { if (data_list[index] == generator.GetData().m_Name) { generator.RemoveSkill(index); generator.InitSkillInfo(); } else { generator.InitSkillInfo(); generator.SelectSkill(index); } } }
private void OnEnable() { generator = (SkillTreeEditorManager)target; generator.InitSkillInfo(); }