add scripts from post-scale attempt
This commit is contained in:
parent
96dcfa9064
commit
87383d5b8c
18 changed files with 362 additions and 148 deletions
|
|
@ -46,23 +46,6 @@ public class EnemyBulletPattern : EnemyAbility
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ShootProjectile(Projectile projectile, Vector3 location, float speed, bool aimed)
|
||||
{
|
||||
Projectile newProjectile = Instantiate(projectile, origin.position, Quaternion.identity);
|
||||
Vector3 projectileDirection = location;
|
||||
if (aimed)
|
||||
{
|
||||
projectileDirection = WaveManager.instance.GetRandomPlayerPoint();
|
||||
}
|
||||
newProjectile.transform.Lookat2D(projectileDirection);
|
||||
newProjectile.damage = power;
|
||||
newProjectile.tag = tag;
|
||||
if (speed > 0f)
|
||||
{
|
||||
newProjectile.speed = speed;
|
||||
}
|
||||
}
|
||||
private IEnumerator BurstFire(ProjectileDirection projectile, int burstCount, float burstDelay)
|
||||
{
|
||||
int currentCount = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue