コード例 #1
0
ファイル: CreateGamePanel.cs プロジェクト: isoundy000/qipai-3
 void SVR_createGameRsp(string msg)
 {
     Proto.JustCode data = JsonUtility.FromJson <Proto.JustCode>(msg);
     if (data.code == 0)
     {
         Destroy(gameObject);
     }
 }
コード例 #2
0
 void SVR_signBack(string _msg)
 {
     Proto.JustCode msg = JsonUtility.FromJson <Proto.JustCode>(_msg);
     if (msg.code == 0)
     {
         PlayerInfo.playerData.ifGetAward          = 1;
         nowAwardTrsm.GetComponent <Image>().color = new Color32(155, 155, 155, 255);
         nowAwardTrsm.localEulerAngles             = new Vector3(0, 0, 0);
         nowAwardTrsm = null;
         UIManager.instance.SetSomeInfo("签到领奖成功!");
     }
 }