Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     player = other.gameObject.GetComponent <CarController>();
     if (other.gameObject.CompareTag("Player"))
     {
         if (isClient)
         {
             player.CmdWhoWon();
         }
     }
 }