ReisenYoumuOuting/Assets/Scripts/Abilities/EnemyShootBasic.cs

19 lines
640 B
C#

using System;
using Core.Extensions;
using UnityEngine;
using Random = UnityEngine.Random;
public class EnemyShootBasic : EnemyAbility
{
// i think this will just be a debug script since a regular singular bullet attack is kinda boring lol
//or atleast i'd need to figure out cool bullet patterns
[SerializeField] private Projectile projectile;
protected override void AbilityEffects()
{
Projectile newProjectile = Instantiate(projectile, origin.position, Quaternion.identity);
newProjectile.transform.Lookat2D(direction);
newProjectile.damage = power;
newProjectile.tag = tag;
}
}