RiftMayhem/Assets/Scripts/Networking/NetworkedAreaOfEffectOverTimeWithTickEvent.cs
2025-02-21 18:35:51 +00:00

16 lines
451 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class NetworkedAreaOfEffectOverTimeWithTickEvent : NetworkedAreaOfEffectOverTime
{
public UnityEvent<Taggable, List<Taggable>> onTickHappened = new UnityEvent<Taggable, List<Taggable>>();
protected override void OnTickPerformed()
{
if (targets.Count > 0)
onTickHappened.Invoke(ownerTag, targets);
}
}