Пример #1
0
 private void CmdAskKill(PlayerBehaviour killPlayer)
 {
     if (Vector3.Distance(killPlayer.transform.position, transform.position) <= 2)
     {
         _networkTransform.ServerTeleport(killPlayer.transform.position);
         //transform.position = killPlayer.transform.position;
         killPlayer.State   = PlayerState.Dead;
         killPlayer.CanMove = false;
         //killPlayer.RpcKill();
     }
 }