Beispiel #1
0
 public void OnClick()
 {
     if (isRed)
     {
         colorMan.SetRedRGB(thisColor.r * 255, thisColor.g * 255, thisColor.b * 255);
         colorMan.ChangeSelectedRed(this.gameObject);
     }
     else if (isBlue)
     {
         colorMan.SetBlueRGB(thisColor.r * 255, thisColor.g * 255, thisColor.b * 255);
         colorMan.ChangeSelectedBlue(this.gameObject);
     }
     else if (isGreen)
     {
         colorMan.SetGreenRGB(thisColor.r * 255, thisColor.g * 255, thisColor.b * 255);
         colorMan.ChangeSelectedGreen(this.gameObject);
     }
     else if (isYellow)
     {
         colorMan.SetYellowRGB(thisColor.r * 255, thisColor.g * 255, thisColor.b * 255);
         colorMan.ChangeSelectedYellow(this.gameObject);
     }
 }