Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        hsvColor = spawner.getColor();

        mylight.color = hsvColor;
        sprite.color  = hsvColor;

        transform.Translate(speed * Time.deltaTime, 0, 0);
    }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     hsvColor = stars.getColor();
     if (buttonComponent != null)
     {
         ColorBlock cb = buttonComponent.colors;
         cb.highlightedColor    = hsvColor;
         buttonComponent.colors = cb;
     }
     if (imageComponent != null)
     {
         imageComponent.color = hsvColor;
     }
     //if (textComponent != null)
     //{
     //    textComponent.color = hsvColor;
     //}
 }