public void AddKey(keyColor k) { if (!keysC.Contains(k)) { keysC.Add(k); } }
public bool CheckKey(keyColor keyColor) { foreach (keyColor keyc in keysC) { if (keyc == keyColor) { return(true); } } return(false); }
public static Color GetMyKeyColor(keyColor color) { switch (color) { case keyColor.BLUE: return(Color.blue); break; case keyColor.YELLOW: return(Color.yellow); break; } return(Color.white); }