Beispiel #1
0
        public override void Initialize()
        {
            base.Initialize();

            var canvas = GetComponentInChildren <Text>();
            var mesh   = GetComponentInChildren <TextMesh>();

            if (mesh)
            {
                m_textComponent = new TextComponentInterface(this, mesh);
            }
            else if (canvas)
            {
                m_textComponent = new TextComponentInterface(this, canvas);
            }
            else
            {
                m_textComponent = new TextComponentInterface(this, settings != null ? settings.textComponentType : TextComponentInterface.Type.Mesh);
            }
        }
Beispiel #2
0
 public void Initialize(TextMesh textComponent)
 {
     m_textComponent = new TextComponentInterface(this, textComponent);
 }
Beispiel #3
0
 public void Initialize(TextComponentInterface.Type textComponentType)
 {
     m_textComponent = new TextComponentInterface(this, textComponentType);
 }