Ejemplo n.º 1
0
    public override void SetPlayerProjectileStats(float currentSpeed, ProjectileStats stats)
    {
        movement          = GetComponent <TransformMovement>();
        damageOnCollision = GetComponent <ApplyDamageOnCollision>();

        transform.localScale     = Vector3.one * stats.Size;
        movement.AxisMultipliers = Vector3.one * (stats.AddedSpeed + currentSpeed);
        damageOnCollision.Damage = stats.Damage;
    }
Ejemplo n.º 2
0
    public void SetupPickup(Vector2 dir, float speed)
    {
        movement = GetComponent <TransformMovement>();

        movement.SetAxisMultiplier(dir * speed);
    }