Exemple #1
0
        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);
        }
Exemple #2
0
        protected override void OnProcessOutputSchema(MutableObject newSchema)
        {
            ColorTarget.SetValue(Color.magenta, newSchema);

            Router.TransmitAllSchema(newSchema);
        }