void OnEnable() { if (swatchyColor == null) { swatchyColor = new SwatchyColor(); } swatchyColor.OnColorChanged += Apply; swatchyColor.OnEnable(); }
void OnEnable() { if (sky == null) { sky = new SwatchyColor(); } if (equator == null) { equator = new SwatchyColor(); } if (ground == null) { ground = new SwatchyColor(); } sky.OnColorChanged += Apply; sky.OnEnable(); equator.OnColorChanged += Apply; equator.OnEnable(); ground.OnColorChanged += Apply; ground.OnEnable(); }