Esempio n. 1
0
 void Update()
 {
     if (_generating)
     {
         SetSpeed(_uihandler.GetSpeed());
     }
     if (_playerSpawner.Player != null)
     {
         RaycastHit hit = _raycast.SendRaycast(_playerSpawner.Player.transform);
         if (hit.collider.tag == "Finish" && _victory == false)
         {
             _victory = true;
             StartCoroutine(WinShow());
         }
     }
 }