diff --git a/xiaofang/Assets/Script/DirllInterface/gameRoomReserve.cs b/xiaofang/Assets/Script/DirllInterface/gameRoomReserve.cs index e6ba1eb6..378d1eb0 100644 --- a/xiaofang/Assets/Script/DirllInterface/gameRoomReserve.cs +++ b/xiaofang/Assets/Script/DirllInterface/gameRoomReserve.cs @@ -31,7 +31,10 @@ public class gameRoomReserve : MonoBehaviour Debug.Log("预定演练" + response); // 解析服务器返回的数据 ScheduledDrillResponse scheduledDrillResponse = JsonConvert.DeserializeObject(response); - Debug.Log(scheduledDrillResponse.data); + //存静态 + GlobalData.scheduledDrillResponse = scheduledDrillResponse; + Debug.Log("这个不是是静态的" + scheduledDrillResponse.data); + Debug.Log("现在是静态的"+GlobalData.scheduledDrillResponse.data); return scheduledDrillResponse; } } diff --git a/xiaofang/Assets/Script/login/MyGlobal.cs b/xiaofang/Assets/Script/login/MyGlobal.cs index 582de315..7bcf7c03 100644 --- a/xiaofang/Assets/Script/login/MyGlobal.cs +++ b/xiaofang/Assets/Script/login/MyGlobal.cs @@ -6,6 +6,7 @@ public class MyGlobal : Global { public static MyGlobal global; public loginResponse loginResponse; + //public ScheduledDrillResponse scheduledDrillResponse; private void Start() { @@ -68,6 +69,7 @@ public static class GlobalData { // 静态变量用于存储登录响应数据 public static loginResponse ServerData; + public static ScheduledDrillResponse scheduledDrillResponse; } //==================================================== //public class TemplateListData: Response