Пример #1
0
        public FireAttack(GameObject attackObject, AbilitiesDatabaseConn dbConn) : base(dbConn)
        {
            this.attackObject = attackObject;

            attackDamage = this.DBConn.GETAbilityAttackDamage();
            float attackRange = dbConn.GETAbilityAttackRange();

            attackObject.GetComponent <CircleCollider2D>().radius = attackRange;
        }
Пример #2
0
        public RangedAttack(Transform shootingPoint, GameObject projectilePrefab, AbilitiesDatabaseConn dbConn) : base(dbConn)
        {
            this.shootingPoint = shootingPoint;
            projectile         = projectilePrefab;

            abilityRange    = dbConn.GETAbilityAttackRange();
            projectileSpeed = dbConn.GETProjectileSpeed();
            attackDamage    = dbConn.GETAbilityAttackDamage();
        }