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); } }
public void Initialize(TextMesh textComponent) { m_textComponent = new TextComponentInterface(this, textComponent); }
public void Initialize(TextComponentInterface.Type textComponentType) { m_textComponent = new TextComponentInterface(this, textComponentType); }