namespace UIWidgets { using UnityEngine; using UnityEngine.UI; /// /// Text null. /// Used when not found any text component. /// public class TextNull : ITextProxy { /// /// GameObject. /// public GameObject GameObject { get { return null; } } /// /// Graphic. /// public Graphic Graphic { get { return null; } } /// /// Color. /// public Color color { get { return Color.clear; } set { } } /// /// Text. /// public string text { get { return null; } set { } } /// /// Font size. /// public float fontSize { get { return 0; } set { } } /// /// Font style. /// public FontStyle fontStyle { get { return FontStyle.Normal; } set { } } /// /// Bold. /// public bool Bold { get { return false; } set { } } /// /// Italic. /// public bool Italic { get { return false; } set { } } } }