#nullable enable
namespace TagFighter.Effects
{
using UnityEngine;
public class RuneRunner : MonoBehaviour
{
[ContextMenuItem("Cast Rune", "Cast")]
public RuneRef? Rune;
public Weaver? Target;
public Weaver? Caster;
void Cast() {
if (Rune == null || Target == null || Caster == null) {
return;
}
Debug.Log($"Casting {Rune} By {Caster} On {Target}");
var context = new EffectContext(new(Caster.transform), new(Target.transform));
Rune.Cast(context);
}
}
}