Files
beyond/Assets/Scripts/Tutorial/UseCovertGazeStep.cs
2026-01-22 14:54:35 +01:00

23 lines
671 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Beyond
{
public class UseCovertGazeStep : MonoBehaviour
{
public BaseStepController baseStepController;
public MagicAttacks magicAttacks;
// Start is called before the first frame update
private void Start()
{
// [FIX] Checked the equipped item name instead of 'selectedEffect'
baseStepController.ConditionsAreMet += () =>
{
var item = magicAttacks.GetEquippedSpellItem();
return item != null && item.name.Contains("Covert Gaze");
};
}
}
}