public static string GetColorCode(SpaceColor style) { string result; if (!RichTextUtils.ColorStyleDict.TryGetValue(style, out result)) { return(string.Empty); } return(result); }
public static string ToColor(this int text, SpaceColor style) { return(text.ToString().ToColor(style)); }
public void SetInital(SpaceColor color, Vector2 loc) { _spaceColor = color; location = loc; }
public static string ToColor(this string text, SpaceColor style) { string colorCode = RichTextUtils.GetColorCode(style); return(text.ToColor(colorCode)); }
public ChessSpace(SpaceColor color) { Color = color; }