Beispiel #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.gameObject.CompareTag("GameArea"))
     {
         bulletEvent.Invoke(gameObject);
     }
 }
 /// <summary>
 /// Функция, выключающая объект
 /// </summary>
 public void DisableObj()
 {
     gameObject.SetActive(false);
     ObjectDisabledEvent.Invoke(this);
 }
 public void OnTriggerEnter(Collider coll)
 {
     onBulletEvent.Invoke(coll);
 }