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