Exemple #1
0
        protected override void Definition()
        {
            if (!usePersistantDataPath)
            {
                path = ValueInput <string>("path", string.Empty);
            }
            fileName = ValueInput <string>(nameof(fileName), string.Empty);

            complete = ControlOutput("complete");
            delete   = ControlInput("delete", (flow) => {
                UniversalSave.Delete((usePersistantDataPath) ? Application.persistentDataPath + "/" + flow.GetValue <string>(fileName) : flow.GetValue <string>(path) + "/" + flow.GetValue <string>(fileName));
                return(complete);
            });

            Requirement(fileName, delete);
            Succession(delete, complete);
        }