예제 #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);
 }
예제 #2
0
 /// <summary>
 /// Broadcasts an alert.
 /// </summary>
 public void OnHit(Hit hit)
 {
     Alerts.Broadcast(hit.Position, Range, true, Actors.Get(hit.Attacker), false);
 }
예제 #3
0
 /// <summary>
 /// No resurrection alert.
 /// </summary>
 public void OnResurrect()
 {
     Alerts.Broadcast(transform.position, Resurrect, false, _actor, true);
 }
예제 #4
0
 /// <summary>
 /// Generates a death alert.
 /// </summary>
 public void OnDead()
 {
     Alerts.Broadcast(transform.position, Death, true, _actor, true);
 }
예제 #5
0
 /// <summary>
 /// Generates a hurt alert.
 /// </summary>
 public void OnHit(Hit hit)
 {
     Alerts.Broadcast(transform.position, Hurt, true, _actor, true);
 }
예제 #6
0
 /// <summary>
 /// Generates a land alert.
 /// </summary>
 public void OnLand()
 {
     Alerts.Broadcast(transform.position, Land, false, _actor, true);
 }
예제 #7
0
 /// <summary>
 /// Generates a jump alert.
 /// </summary>
 public void OnJump()
 {
     Alerts.Broadcast(transform.position, Jump, false, _actor, true);
 }