public static RestConnect Instance() { if (r_instance == null) { GameObject gameObject = new GameObject(); r_instance = gameObject.AddComponent<RestConnect>(); hostUrl = "http://localhost:8080/"; } return (RestConnect)r_instance; }
void Awake() { r_instance = this; }