private ColorHandler StaticColorHandler() { MouseZoneLogo zone = UnityEngine.ScriptableObject.CreateInstance <MouseZoneLogo>(); RateStatic rate = ScriptableObject.CreateInstance <RateStatic>(); rate.frequency = 0; rate.repeatLimit = 0; ColorStatic cyan = ColorStatic.Create(0, 194, 255); return(ColorHandler.Create(zone, IlluminationMode.Color, cyan, rate)); }
private ColorHandler RangedColorHandler() { KeyboardZoneMainKeyboard zone = UnityEngine.ScriptableObject.CreateInstance <KeyboardZoneMainKeyboard>(); ColorStatic cyan = ColorStatic.Create(0, 194, 255); ColorStatic green = ColorStatic.Create(0, 255, 0); ColorStatic red = ColorStatic.Create(255, 0, 0); ColorRange cyanRange = new ColorRange(0, 10, cyan); ColorRange redRange = new ColorRange(10, 20, red); ColorRange greenRange = new ColorRange(20, 100, green); ColorRange[] ranges = { cyanRange, redRange, greenRange }; return(ColorHandler.Create(zone, IlluminationMode.Color, ColorRanges.Create(ranges))); }