Ejemplo n.º 1
0
 public static void Init(string appId, string secret, GrdNet net)
 {
     if (handler == null)
     {
         GameObject g = new GameObject();
         g.name  = "GrdManager";
         handler = g.AddComponent <GrdHandler>();
     }
     handler.Init(appId, secret, net == GrdNet.Main ? apiMainUrl : apiTestUrl);
 }
Ejemplo n.º 2
0
 public static void Init(string appId, string secret, GrdNet net)
 {
     api_Id     = appId;
     api_Secret = secret;
     url        = net == GrdNet.Main ? mainNetUrl : testNetUrl;
 }