9 public EffectText Play(Vector3 _pos,
string text,
float _duration = 0f)
11 base.transform.SetParent(
EffectText.transRoot,
false);
12 this.pos = _pos + this.posFix + this.randomRange.Random();
15 text =
"* " + text +
" *";
17 this.textMain.text = text;
25 this.textMain.color = c;
32 this.textMain.fontSize = (int)(a * (
float)this.textMain.fontSize);
37 public void LateUpdate()
39 this.rect.localPosition = Util.WorldToUIPos(this.pos, this.rect.parent as RectTransform);
43 public static RectTransform transRoot;
49 public RectTransform rect;
52 public RectTransform body;
55 public bool addBrackets;