1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Entities/Bug.cs

26 lines
565 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Assets.Scripts.Entities.Attack;
namespace Assets.Scripts.Entities {
public class Bug : Enemy {
2018-04-23 19:50:04 +02:00
[SerializeField]
private Transform bulletSpawn;
[SerializeField]
private GameObject bullet;
public Bug() : base(15) {
2018-04-23 16:08:16 +02:00
}
private void Start() {
2018-04-23 19:50:04 +02:00
SingleShot s = new SingleShot(this.gameObject);
s.SetPrefab(bullet);
s.SetSpawn(bulletSpawn);
SetAttack(s);
2018-04-23 16:08:16 +02:00
}
}
}