random stuff i forgot to commit
This commit is contained in:
parent
274af1e5a1
commit
b0625ae834
59 changed files with 7806 additions and 664 deletions
19
Assets/Scripts/Abilities/EnemyShootBasic.cs
Normal file
19
Assets/Scripts/Abilities/EnemyShootBasic.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue