protected void SpawnAttackProjectile() { // Create a melee projectile GameObject projectile = InstantiateGameObject(enemyWeapon); // Assign weapon direction if (enemyAnimator.IsFacingLeft()) { projectile.GetComponent <EnemyWeapon>().Setup(new Vector2(-1, 0)); } else { projectile.GetComponent <EnemyWeapon>().Setup(new Vector2(1, 0)); } if (isBoss) { gameManager.Shake(0.5f); } }