public static AODText CreateText(string text, float lifeTime, Color color, Vector2 position, GameWorld gameWorld, FadeOutState fadeOutState, Vector2 velocity) { AODText a = AODText.CreateText(text, lifeTime, color, position, gameWorld, fadeOutState); a.velocity = velocity; return(a); }
/// <summary> /// 创建一行信息 /// </summary> /// <param name="text">内容</param> /// <param name="lifeTime">存在时间</param> /// <param name="color">颜色</param> /// <param name="position">位置</param> public static AODText CreateText(string text, float lifeTime, Color color, Vector2 position, GameWorld gameWorld, FadeOutState fadeOutState) { AODText a = new AODText(gameWorld); a.Text = text; a.color = color; a.position = position; a.lifeTime = lifeTime; a.FadeOutState = fadeOutState; return(a); }
public void AddText(AODText text) { items.Add(text); }