public override void onAddedToEntity()
        {
            _platformerObject = entity.getComponent <PlatformerObject>();

            _battleComponent = entity.getComponent <BattleComponent>();
            _battleComponent.setHp(1);
            _battleComponent.battleEntity = this;
        }
Exemplo n.º 2
0
        public override void onAddedToEntity()
        {
            _platformerObject   = entity.getComponent <PlatformerObject>();
            _characterComponent = entity.getComponent <CharacterComponent>();

            sprite = entity.getComponent <AnimatedSprite>();

            entity.setTag(GlobalConstants.PLAYER_TAG);
        }
        public override void onAddedToEntity()
        {
            _platformerObject = entity.getComponent <PlatformerObject>();

            _battleComponent = entity.getComponent <BattleComponent>();
            _battleComponent.setHp(4);
            _battleComponent.battleEntity = this;

            entity.setTag(SceneMap.ENEMIES);
        }
        public override void onAddedToEntity()
        {
            _platformerObject = entity.getComponent <PlatformerObject>();
            battleComponent   = entity.getComponent <BattleComponent>();
            battleComponent.setHp(MAX_HP);
            battleComponent.battleEntity        = this;
            battleComponent.ImmunityDuration    = 0.5f;
            battleComponent.destroyEntityAction = destroyEntity;

            entity.setTag(SceneMap.PLAYER);
        }
Exemplo n.º 5
0
        public override void onAddedToEntity()
        {
            _platformerObject    = entity.getComponent <PlatformerObject>();
            _textWindowComponent = entity.getComponent <TextWindowComponent>();

            loadTexture();
            createCollider();
            if (!Invisible)
            {
                createSprite();
                createAnimations();
                sprite.play(default(Animations));
            }
        }
Exemplo n.º 6
0
        public override void onAddedToEntity()
        {
            _spriteTail = entity.getComponent <TimedSpriteTail>();

            _platformerObject = entity.getComponent <PlatformerObject>();
            _platformerObject.setGetDeltaTimeFunc(GetDeltaTimeFunc);

            _battleComponent = entity.getComponent <BattleComponent>();
            _battleComponent.battleEntity        = this;
            _battleComponent.ImmunityDuration    = 0.5f;
            _battleComponent.destroyEntityAction = destroyEntity;

            _timer = entity.scene.findEntity("timer").getComponent <TimerComponent>();
            _distortionCursorSprite = entity.scene.findEntity("distortionCursor").getComponent <Sprite>();
        }
Exemplo n.º 7
0
        //----------------------//------------------------//

        public override void onAddedToEntity()
        {
            _platformerObject = entity.getComponent <PlatformerObject>();

            _battleComponent = entity.getComponent <BattleComponent>();
            _battleComponent.setMaxHp(1, true);
            _battleComponent.battleEntity      = this;
            _battleComponent.damageHitFunction = damageHitFunction;

            var player = Core.getGlobalManager <SystemManager>().playerEntity;

            _playerComponent = player.getComponent <PlayerComponent>();

            _damageHitsComponent = entity.addComponent <DamageHitsComponent>();
        }
        public override void onAddedToEntity()
        {
            _platformerObject = entity.getComponent <PlatformerObject>();
            _platformerObject.setGetDeltaTimeFunc(GetDeltaTimeFunc);

            _battleComponent = entity.getComponent <BattleComponent>();
            _battleComponent.battleEntity        = this;
            _battleComponent.ImmunityDuration    = 0.5f;
            _battleComponent.destroyEntityAction = destroyEntity;
            _battleComponent.setMaxHp(20, true);

            _weaponSelectionComponent = entity.addComponent <WeaponSelectionComponent>();

            _dashTrailComponent             = entity.addComponent <DashTrailComponent>();
            _dashTrailComponent.renderLayer = SceneMap.MISC_RENDER_LAYER;
            _dashTrailComponent.SetSpawnEnabled(false);
        }
Exemplo n.º 9
0
 public override void onAddedToEntity()
 {
     _platformerObject = entity.getComponent <PlatformerObject>();
 }