示例#1
0
        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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
 public void AddText(AODText text)
 {
     items.Add(text);
 }