Exemplo n.º 1
0
        public override string GetRandomValue()
        {
            _currentRandom = base.GetRandomValue();

            var ent = EntityManager.GetEntiy <GameObject>(EntID);

            TextAlignAlias.ForEach(i => ent.GetComponent <ITextAlign>(i).Align());

            return(_currentRandom);
        }
Exemplo n.º 2
0
        public void Render(double deltaTime)
        {
            var ent = EntityManager.GetEntiy <GameObject>(EntID);

            TextAlignAlias.ForEach(i => ent.GetComponent <ITextAlign>(i).Align());

            string text = GetValueAsString(ent);

            var postion = ent.GetComponent <IPostionComponet>(PostionAlais).GetPostion();

            var color = ent.GetComponent <IValueCom <Color> >(ColorAlias).Value;

            SpriteBatch.DrawString(_font, text, postion.ToVector(), color, 0, new Vector2(), Scale, SpriteEffects.None, 0);
        }