RiftMayhem/Assets/Scripts/Networking/NetworkedAreaOfEffectOverTimeWithTickEvent.cs
Pedro Gomes b29b17ebfd New systems & spells
- Fixed issue on projectile hit events that triggered multiple times.
- Implemented % costs for health and mana
- Updated key binding UI slots to show health costs if present
- New Necromancer projectile AoEOverTime ability: Bonestorm.
- New Vamp/Cultist/Satanist summon ability: Bloody Shadow.
2024-12-29 18:39:40 +00:00

17 lines
500 B
C#

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