示例#1
0
    public void nextRound()
    {
        JSONObject startJson = new JSONObject();

        startJson.AddField("type", "ddz");
        //Modified by xiaoyong 2016/2/16  change to "ready"
        //        startJson.AddField("tag", "start");
        startJson.AddField("tag", "ready");
        startJson.AddField("body", 1);
        mainDoc.SendPackageWithJson(startJson);
        hideDialog();
        mainDoc.tipMsg.SetActive(true);
    }
示例#2
0
 public void enterGame()
 {
     if (curTime == 0 || curTime == -2)
     {
         JSONObject startJson = new JSONObject();
         startJson.AddField("type", "ddz");
         //Modified by xiaoyong 2016/2/16  change to "ready"
         //        startJson.AddField("tag", "start");
         startJson.AddField("tag", "ready");
         startJson.AddField("body", 1);
         mainDoc.SendPackageWithJson(startJson);
         gameObject.SetActive(false);
     }
     else
     {
         regTitle.SetActive(true);
         if (IsInvoking("hideTips"))
         {
             CancelInvoke("hideTips");
         }
         Invoke("hideTips", 3.0f);
     }
 }