69f013755e
And other balancing
27 lines
620 B
C#
27 lines
620 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using Assets.Scripts.Entities.Attack;
|
|
|
|
namespace Assets.Scripts.Entities {
|
|
|
|
public class Bug : Enemy {
|
|
[SerializeField]
|
|
private Transform bulletSpawn;
|
|
[SerializeField]
|
|
private GameObject bullet;
|
|
|
|
public Bug() : base(5) {
|
|
|
|
}
|
|
|
|
protected override void Start() {
|
|
SingleShot s = new SingleShot(this.gameObject, 8, 3, 8 );
|
|
s.SetRange(3);
|
|
s.SetPrefab(bullet);
|
|
s.SetSpawn(bulletSpawn);
|
|
SetAttack(s);
|
|
base.Start();
|
|
}
|
|
}
|
|
}
|