public void SetData(InteractiveData interactiveData)
    {
        interactiveData.SetTo(damageEntity);

        damagedTime   = interactiveData.DamageTime;
        damagingCount = interactiveData.DamageCount;
    }
Example #2
0
    public void SetData(InteractiveData interactiveData)
    {
        interactiveData.SetTo(damageEntity);

        damageEntity.ActionInCoroutineAttack =
        x => x.AddColorBy(damageEntity.DamagedColor, interactiveData.DamageTime);

        damageEntity.Collider = collider;
    }
    public virtual void SetData(InteractiveData interactiveData)
    {
        reloadingTimeBetweenShoots = interactiveData.DamageTime;
        interactiveData.SetTo(reloadingEntity);

        hittingEffectsPool = new Pool <Vector2>
                             (
            InstansiateHittingEffect()
            .With(InstansiateHittingEffect())
                             );

        bulletsPool = new Pool(InstansiateBullets(interactiveData));
    }
Example #4
0
    public void SetData(InteractiveData interactiveData)
    {
        interactiveData.SetTo(damageEntity);
        damageEntity.Collider = collider2D;

        damageEntity.ActionInCoroutineAttack =
            player =>
        {
            hittingEffect.transform.position = player.transform.position;
            hittingEffect.Play();
            player.AddColorBy(damageEntity.DamagedColor, damageEntity.ColoredTime);
        };
    }
Example #5
0
 public void SetData(InteractiveData interactiveData)
 {
     interactiveData.SetTo(damageEntity);
 }