Encounter / Assets / Scripts / TitlePowers.cs
TitlePowers.cs
Raw
using System;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

/// <summary>
/// Handles specific implementations of certain title powers, such as Dream Master, Vampire Lord, etc.
/// </summary>
public class TitlePowers : MonoBehaviour
{
    #region Dream Master Abilities
    public static void DreamPowers(EnemyUI uiSystem, Entity entity, List<GameObject> buttons)
    {
        // TODO ---> To be further implemented
        uiSystem.ResetUI();
        buttons = new List<GameObject>();

        GameObject buttonRef = Instantiate(uiSystem.spellButton, uiSystem.playerField);
        buttons.Add(buttonRef);
        buttonRef.GetComponentInChildren<TextMeshProUGUI>().text = "Work in Progress!";

        uiSystem.CreateCancelButton(entity);
    }
    #endregion
}