/// <summary>
        /// Try connect with last saved server ip end point
        /// </summary>
        private static void Reconnect()
        {
            Debug.Log($"Trying to reconnect. Tries left: {_reconnectTriesLeft}/{RECONNECT_TRIES}");

            _reconnectTriesLeft--;

            FoolWebClient.ReconnectToGameServer();
        }
Example #2
0
    public void AddMoney(float sum)
    {
        string request = $"http://{FoolWebClient.GetIp()}:{PayServerPort}/payment/?user_id={FoolNetwork.LocalPlayer.UserId}&sum={sum}";

        Application.OpenURL(request);
    }