Beispiel #1
0
    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;
        }
    }
Beispiel #2
0
 public static void InitSpellPopup()
 {
     currentPopupWindow = GetWindow <SpellPopupWindow>();
     currentPopupWindow.titleContent.text = "Create Spell Database";
 }