protected override MutableObject Mutate(MutableObject mutable) { var groupId = GroupId.GetLastKeyValue(mutable); var index = DataShare.ContainsKey(groupId) ? DataShare[groupId] : 0; if (groupId != "") { DataShare[groupId] = index + 1; } ColorTarget.SetValue(ColorPalette.ColorFromIndex(index), mutable); return(mutable); }
protected override void OnProcessOutputSchema(MutableObject newSchema) { ColorTarget.SetValue(Color.magenta, newSchema); Router.TransmitAllSchema(newSchema); }