private Color GetColor(PushColor color) { switch (color) { case PushColor.Debug: return(ColorDebug); case PushColor.Info: return(ColorInfo); case PushColor.Warning: return(ColorWarning); case PushColor.Error: return(ColorError); case PushColor.Success: return(ColorSuccess); case PushColor.Failed: return(ColorFailed); default: return(Color.white); } }
public GameObject Add(string msg, PushColor color) { return(Add(msg, GetColor(color))); }