Ejemplo n.º 1
0
    public void LightTouched(ColorOfLight lightColor)
    {
        Light tempLight = litBy[lightColor];

        tempLight.currentLits++;
        litBy[lightColor] = tempLight;

        CheckAndChangeOpacity();
    }
Ejemplo n.º 2
0
    public void LightLeft(ColorOfLight lightColor)
    {
        Light tempLight = litBy[lightColor];

        tempLight.currentLits--;
        litBy[lightColor] = tempLight;

        CheckAndChangeOpacity();
    }
Ejemplo n.º 3
0
 public int GetLitAmount(ColorOfLight lightColor)
 {
     return(litBy[lightColor].currentLits);
 }