// 创建生命条 FloatText createFloatText(Transform trans, int val) { GameObject gameObject = Instantiate(prefab, Root, false); FloatText floatText = gameObject.GetComponent <FloatText>(); floatText.OnUse(trans, val.ToString()); return(floatText); }
// Token: 0x06000033 RID: 51 RVA: 0x00002FBC File Offset: 0x000011BC private void _CreateFloatText(Vector3 pos, string text, Color color) { FloatText orCreateText = this.GetOrCreateText(); orCreateText.mgr = this; orCreateText.color = color; this.runingTexts.Add(orCreateText); orCreateText.OnUse(pos, text); }