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); } }
private void changeGrapicColor(ColorsOfCardTimer color) { image.color = getColor(color); }