Encounter / Assets / Scripts / EntityHandler / Boss.cs
Boss.cs
Raw
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;

[RequireComponent(typeof(EntityStats))]
[RequireComponent(typeof(Target))]
[RequireComponent(typeof(CheckCameraUtil))]
[RequireComponent(typeof(EntityAnimation))]
/// <summary>
/// A special enemy type that has unique sequences and functions for their specific boss
/// </summary>
public class Boss : Enemy
{
    [Header("Spawn Effects")]
    [SerializeField] private AudioClip spawnSFX;

    public override async Task ActivateEnemy(List<SpellSO> preSpellList = null, int? preSpellRange = null)
    {
        await base.ActivateEnemy(preSpellList, preSpellRange);
    }

    public async Task PlayEncounterEffect()
    {
        EntityAnimation entAnim = GetComponent<EntityAnimation>();

        await entAnim.PlayBossSpawnAnimation(spawnSFX);
    }
}