public override void onAddedToEntity() { _platformerObject = entity.getComponent <PlatformerObject>(); _textWindowComponent = entity.getComponent <TextWindowComponent>(); loadTexture(); createCollider(); if (!Invisible) { createSprite(); createAnimations(); sprite.play(default(Animations)); } }
public NpcMessageTargetCommand(NpcBase npc, Entity target, string text, float maxWidth) : base(npc) { _text = text; _maxWidth = maxWidth; _textWindowComponent = target.getComponent <TextWindowComponent>(); }
public NpcCloseTargetMessageCommand(NpcBase npc, Entity target) : base(npc) { _textWindowComponent = target.getComponent <TextWindowComponent>(); }