void InitStack() { if (!stack) { GameObject stackGo = new GameObject("TextLabel"); stackGo.layer = row.Layer; stackGo.transform.parent = transform; stackGo.transform.localPosition = row.StackFontPosition + new Vector3(0, 0, -0.1f); stack = stackGo.AddComponent <BattleTextRenderer>(); stack.GlyphSize = row.StackFontSize; stack.Init(); } }
void InitLabel() { if (!label) { GameObject labelGo = new GameObject("TextLabel"); labelGo.layer = row.Layer; labelGo.transform.parent = transform; labelGo.transform.localPosition = row.LabelFontPosition + new Vector3(0, 0, -0.1f); label = labelGo.AddComponent <BattleTextRenderer>(); label.GlyphSize = row.LabelFontSize; label.Init(); } }
void InitStack() { if (!stack) { GameObject stackGo = new GameObject("TextLabel"); stackGo.layer = row.Layer; stackGo.transform.parent = transform; stackGo.transform.localPosition = row.StackFontPosition + new Vector3(0, 0, -0.1f); stack = stackGo.AddComponent<BattleTextRenderer>(); stack.GlyphSize = row.StackFontSize; stack.Init(); } }
void InitLabel() { if (!label) { GameObject labelGo = new GameObject("TextLabel"); labelGo.layer = row.Layer; labelGo.transform.parent = transform; labelGo.transform.localPosition = row.LabelFontPosition + new Vector3(0, 0, -0.1f); label = labelGo.AddComponent<BattleTextRenderer>(); label.GlyphSize = row.LabelFontSize; label.Init(); } }