Пример #1
0
        public override void onAddedToEntity()
        {
            _platformerObject    = entity.getComponent <PlatformerObject>();
            _textWindowComponent = entity.getComponent <TextWindowComponent>();

            loadTexture();
            createCollider();
            if (!Invisible)
            {
                createSprite();
                createAnimations();
                sprite.play(default(Animations));
            }
        }
Пример #2
0
 public NpcMessageTargetCommand(NpcBase npc, Entity target, string text, float maxWidth) : base(npc)
 {
     _text                = text;
     _maxWidth            = maxWidth;
     _textWindowComponent = target.getComponent <TextWindowComponent>();
 }
Пример #3
0
 public NpcCloseTargetMessageCommand(NpcBase npc, Entity target) : base(npc)
 {
     _textWindowComponent = target.getComponent <TextWindowComponent>();
 }