1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Entities/Spider.cs
Triceraptodactyl 415213535d Spider
2018-04-24 03:39:51 +02:00

27 lines
635 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Assets.Scripts.Entities.Attack;
namespace Assets.Scripts.Entities {
public class Spider : Enemy {
[SerializeField]
private Transform bulletSpawn;
[SerializeField]
private GameObject bullet;
public Spider() : base(25) {
}
protected override void Start() {
base.Start();
SingleShot s = new SingleShot(this.gameObject);
s.SetCooldown(5);
s.SetPrefab(bullet);
s.SetSpawn(bulletSpawn);
SetAttack(s);
}
}
}