This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections; | |
using SimpleJSON; | |
public class CheckConnection : MonoBehaviour | |
{ | |
// CHECK INTERNET CONNECTION | |
public bool thereIsConnection; | |
string url ="http://www.google.com"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System; | |
public static class EXT | |
{ | |
//--------------------------------------------- CONVERT THE STRING TO INTEGER ----------------------------------// | |
// This function will parse the string to the integer if possible. | |
public static int ToInt(this string tempVal) |