public bool networkPlayMode = true;//联网游戏模式 public void Awake() { Instance = this; string configStr = ConfigHelper.GetGlobal(); this.GlobalProto = JsonHelper.FromJson <GlobalProto>(configStr); }
public void Awake() { Instance = this; //获得json格式的字符串 由配置生成 string configStr = ConfigHelper.GetGlobal(); //反序列化得到GlobalProto对象 this.GlobalProto = JsonHelper.FromJson <GlobalProto>(configStr); }