- 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.
17 lines
500 B
C#
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);
|
|
}
|
|
}
|