void Update() { if (player.getCurrentPower() == PlayerController.powerUpState.RED) { bulletDamage *= player.powerMultiplier; } else { bulletDamage = defaultDamage; } previousPosition = BulletCollision.bulletCollisionCast(gameObject, transform, previousPosition, bulletRB, bulletDamage, "player"); }
void Update() { previousPosition = BulletCollision.bulletCollisionCast(gameObject, transform, previousPosition, bulletRB, enemyDamage, "enemy"); }