public FireAttack(GameObject attackObject, AbilitiesDatabaseConn dbConn) : base(dbConn) { this.attackObject = attackObject; attackDamage = this.DBConn.GETAbilityAttackDamage(); float attackRange = dbConn.GETAbilityAttackRange(); attackObject.GetComponent <CircleCollider2D>().radius = attackRange; }
public RangedAttack(Transform shootingPoint, GameObject projectilePrefab, AbilitiesDatabaseConn dbConn) : base(dbConn) { this.shootingPoint = shootingPoint; projectile = projectilePrefab; abilityRange = dbConn.GETAbilityAttackRange(); projectileSpeed = dbConn.GETProjectileSpeed(); attackDamage = dbConn.GETAbilityAttackDamage(); }