コード例 #1
0
 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;
 }
コード例 #2
0
 void Awake()
 {
     r_instance = this;
 }