// this instantiator saves us from having to use the overlay library // it just returns a duplicate of the OverlayData private static OverlayData InstantiateOverlay(OverlayData od, Color col) { OverlayData newod = od.Duplicate(); newod.colorData.color = col; return(newod); }