Пример #1
0
 void OnTriggerEnter(Collider col)
 {
     if (!game_finished)
     {
         if (col.gameObject.layer == LayerMask.NameToLayer("FinishLine"))
         {
             source.PlayOneShot(explosion);
             lvlManager.ClearActualLvl();
             sheerMovement.canMove = false;
             waitToNextLvlM        = true;
         }
         game_finished = true;
     }
 }