Example #1
0
    InteractInfoTable LoadTable()
    {
        InteractInfoTable table = new InteractInfoTable();

        table.Load(csvAsset.text);
        return(table);
    }
Example #2
0
    void OnWizardOtherButton()
    {
        InteractInfoTable table = LoadTable();

        InteractInfoTable.Row row;
        FlowSystem.Interact   interact;
        inoutItem.interact.Clear();
        for (int i = 0; i < table.NumRows(); i++)
        {
            row      = table.GetAt(i);
            interact = inoutItem.interact.Find(x => x.intype == row.inType);

            if (interact == null)
            {
                interact = new FlowSystem.Interact();
                inoutItem.interact.Add(interact);
            }

            interact.information            = row.information;
            interact.intype                 = row.inType;
            interact.nodeID                 = row.nodeID;
            interact.outtype                = row.outType;
            interact.outPutFiledinformation = row.outFailInformation;
        }
        UnityEditor.EditorUtility.SetDirty(inoutItem);
    }