void ContextCallBack(object obj) { switch (obj.ToString()) { case "0": SpellPopupWindow.InitSpellPopup(); break; case "1": CS_SpellUtils.LoadGraph(); break; case "2": CS_SpellUtils.UnloadGraph(); break; case "3": CS_SpellUtils.CreateSpell(currentGraph, mousePos); CS_SpellUtils.ReplaceSpell(currentGraph); break; case "5": CS_SpellUtils.DeleteSpell(deleteNoteID, currentGraph); CS_SpellUtils.ReplaceSpell(currentGraph); break; default: break; } }
public static void InitSpellPopup() { currentPopupWindow = GetWindow <SpellPopupWindow>(); currentPopupWindow.titleContent.text = "Create Spell Database"; }