feedback report 3 done
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
public static class GetAvailablePort
|
||||
{
|
||||
|
||||
public static int GetAvailableUdpPort()
|
||||
{
|
||||
using var socket = new Socket(
|
||||
AddressFamily.InterNetwork,
|
||||
SocketType.Dgram,
|
||||
ProtocolType.Udp
|
||||
);
|
||||
|
||||
socket.Bind(new IPEndPoint(IPAddress.Any, 0));
|
||||
|
||||
return ((IPEndPoint)socket.LocalEndPoint).Port;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56db3ddf723732541b67b5c72b5901c5
|
||||
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class OpenLink : MonoBehaviour
|
||||
{
|
||||
public string url = "https://www.google.com";
|
||||
|
||||
public void Open(){
|
||||
Application.OpenURL(url);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91a8a303678625f419fe59a1d4dc2549
|
||||
@@ -109,6 +109,36 @@ public class LevelLoadManager : MonoBehaviour
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Drops the last match from the loading screen. This object survives scene loads, so logout must call this
|
||||
/// or the next login shows the previous matchup while the overlay is up.
|
||||
/// </summary>
|
||||
public void ResetSession()
|
||||
{
|
||||
StopAllCoroutines();
|
||||
BlocksMainMenuSettingsBootstrap = false;
|
||||
gameOver = false;
|
||||
myPlayer = null;
|
||||
opponentPlayer = null;
|
||||
|
||||
canvasGroup.DOKill();
|
||||
contentImage.DOKill();
|
||||
canvasGroup.alpha = 0f;
|
||||
canvasGroup.blocksRaycasts = false;
|
||||
canvasGroup.interactable = false;
|
||||
contentImage.fillAmount = 0f;
|
||||
|
||||
matchmadeUI.SetActive(false);
|
||||
p1_winner.SetActive(false);
|
||||
p2_winner.SetActive(false);
|
||||
txtMiddle.text = "VS";
|
||||
p1_name.text = "";
|
||||
p2_name.text = "";
|
||||
p1_l10.text = "";
|
||||
p2_l10.text = "";
|
||||
txtRcPrize.text = "";
|
||||
}
|
||||
|
||||
Team myTeam = Team.Red;
|
||||
|
||||
public void SetupRematch(int rc_prize, int port, int gameId){
|
||||
|
||||
@@ -6,5 +6,7 @@ public class AuthApiResponse
|
||||
{
|
||||
public bool ok;
|
||||
public string error;
|
||||
public string code;
|
||||
public string token;
|
||||
public UserData user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user