Пример #1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (flying)
     {
         if (planeMan.CrashStarted(planeTransform.position, planeTransform.forward))
         {
             callCrashFinished = true;
             if (AllowSound)
             {
                 audioSource.clip = planeCrashClip;
                 audioSource.Play();
             }
         }
         StartCoroutine(CrashAnimation());
     }
 }