Ejemplo n.º 1
0
    private Color getColor(ColorsOfCardTimer col)
    {
        switch (col)
        {
        case ColorsOfCardTimer.Basic:
            return(Color.white);

        case ColorsOfCardTimer.Slowed:
            return(Color.gray);

        case ColorsOfCardTimer.SpeadUp:
            return(Color.yellow);

        case ColorsOfCardTimer.Stoped:
            return(Color.red);

        default:
            return(Color.white);
        }
    }
Ejemplo n.º 2
0
 private void changeGrapicColor(ColorsOfCardTimer color)
 {
     image.color = getColor(color);
 }