public void Attack() { if (DebugMode) { Debug.Log("Feasting time...omnomnom..."); } _isAttacking = true; _isDescendingWeb = true; AnimateDefault(); _projector.Fire(); }
private void FireProjectile() { int shotRoll = Random.Range(1, 100); if (shotRoll <= ShotChance && Time.time >= _lastShot + ShotDelay) { _snout.ProjectileVelocity = _facingLeft ? new Vector3(-ProjectileVelocity, 0, 0) : new Vector3(ProjectileVelocity, 0, 0); _snout.Fire(); _lastShot = Time.time; } }