Ejemplo n.º 1
0
 void OnEnable()
 {
     if (swatchrColor == null)
     {
         swatchrColor = new SwatchrColor();
     }
     swatchrColor.OnColorChanged += Apply;
     swatchrColor.OnEnable();
 }
Ejemplo n.º 2
0
        void OnEnable()
        {
            if (sky == null)
            {
                sky = new SwatchrColor();
            }
            if (equator == null)
            {
                equator = new SwatchrColor();
            }
            if (ground == null)
            {
                ground = new SwatchrColor();
            }
            sky.OnColorChanged += Apply;
            sky.OnEnable();

            equator.OnColorChanged += Apply;
            equator.OnEnable();

            ground.OnColorChanged += Apply;
            ground.OnEnable();
        }