Exemplo n.º 1
0
 private void SetLocalGaurdsAlerted()
 {
     Collider[] hitColliders = Physics.OverlapSphere(transform.position, 10f);
     foreach (Collider collider in hitColliders)
     {
         // transform.gameObject.SendMessage("GotHit", damage);
         IAlertable alertable = collider.transform.gameObject.GetComponent <IAlertable>();
         if (alertable != null)
         {
             alertable.IsAlerted = true;
         }
     }
 }
Exemplo n.º 2
0
        public BoiteAlertable(IAlertable b) : base(b)
        {

        }
Exemplo n.º 3
0
 public CompteBancaireAltertable(IAlertable c) : base(c)
 {
 }
Exemplo n.º 4
0
 public Alertable(IAlertable alertable)
 {
     _alertable = alertable;
 }