public void AddColor(IColorItem item) { if (this.colorHistory.Count > 10) { this.colorHistory.RemoveAt(0); } colorHistory.Add(item); }
public IColorItem Build(GameObject gameObject) { var components = gameObject.GetComponents(typeof(Component)); foreach (var component in components) { IColorItem colorItem = Build(component); if (colorItem != null) { return(colorItem); } } return(null); }
public ImageOrColorItem(IColorItem item) : base(item.Name, item.Text, item.Font, item.ForeColor, item.ShowBackColor, item.BackColor) { this.m_IsColorItem = false; }