basically the whole game
This commit is contained in:
parent
949135cecb
commit
96dcfa9064
315 changed files with 34386 additions and 396 deletions
28
Assets/Scripts/Abilities/EnemyBurstFire.cs
Normal file
28
Assets/Scripts/Abilities/EnemyBurstFire.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
public class EnemyBurstFire : EnemyBulletPattern
|
||||
{
|
||||
[SerializeField] private int burstCount;
|
||||
[SerializeField] private float burstDelay;
|
||||
|
||||
protected override void AbilityEffects()
|
||||
{
|
||||
foreach (ProjectileDirection projectile in projectileDirections)
|
||||
{
|
||||
StartCoroutine(BurstFire(projectile));
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerator BurstFire(ProjectileDirection moveDirection)
|
||||
{
|
||||
int currentCount = 0;
|
||||
while (currentCount < burstCount)
|
||||
{
|
||||
//ShootProjectile(moveDirection.projectile, direction);
|
||||
currentCount++;
|
||||
yield return new WaitForSeconds(burstDelay);
|
||||
}
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue