Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        if (gvm == null || dictDrawer == null)
        {
            gvm        = target as ConditionManager;
            dictDrawer = new DictionaryEditorDrawer <string, CardCondition>(this, "Conditions", gvm.Data, DrawVar);
        }

        DrawDefaultInspector();
        dictDrawer.OnInspectorGUI();
    }
    public override void OnInspectorGUI()
    {
        if (gvm == null || dictDrawer == null)
        {
            gvm                 = target as GlobalVariableManager;
            dictDrawer          = new DictionaryEditorDrawer <string, GlobalVariable>(this, "Variables", gvm.Data, DrawVar);
            gvm.OnValueChanged += OnValueChanged;
        }

        DrawDefaultInspector();
        dictDrawer.OnInspectorGUI();
    }