/// <summary> /// Activates the alert and resets the timer. /// </summary> public void Activate() { Alerts.Broadcast(transform.position, Range, IsHostile, _actor == null ? Generator : _actor, _actor != null); }
/// <summary> /// Broadcasts an alert. /// </summary> public void OnHit(Hit hit) { Alerts.Broadcast(hit.Position, Range, true, Actors.Get(hit.Attacker), false); }
/// <summary> /// No resurrection alert. /// </summary> public void OnResurrect() { Alerts.Broadcast(transform.position, Resurrect, false, _actor, true); }
/// <summary> /// Generates a death alert. /// </summary> public void OnDead() { Alerts.Broadcast(transform.position, Death, true, _actor, true); }
/// <summary> /// Generates a hurt alert. /// </summary> public void OnHit(Hit hit) { Alerts.Broadcast(transform.position, Hurt, true, _actor, true); }
/// <summary> /// Generates a land alert. /// </summary> public void OnLand() { Alerts.Broadcast(transform.position, Land, false, _actor, true); }
/// <summary> /// Generates a jump alert. /// </summary> public void OnJump() { Alerts.Broadcast(transform.position, Jump, false, _actor, true); }