Add a Boss
2
Scripts creation
public class NewBossBehavior : EnemyBehavior
{
protected override void Awake()
{
base.Awake();
// Initialize everything you need here
}
//Starting Behavior coroutine when EnemiesSpawner spawns the boss
public override void Play()
{
base.Play();
StartCoroutine(BehaviorCoroutine());
}
private IEnumerator BehaviorCoroutine()
{
// Implement your custom behavior here
}
protected override void Die(bool flash)
{
base.Die(flash);
// Clear everything that was spawned by the boss here
}
}IsMoving = false;5
Last updated





