Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.CompareTag("Traveller"))
     {
         travellerHealth th1 = other.gameObject.GetComponentInChildren <travellerHealth>();
         if (th1 == null)
         {
             Debug.Log("Could not find travellerHealth script");
         }
         else
         {
             th1.TakeStationaryDamage();
         }
         anim.SetTrigger("isDead");
         Invoke("playFire", 3f);
     }
 }