Ejemplo n.º 1
0
        public void Init()
        {
            TextAsset     jsonData      = ECSLocate.Factory.GetProduct <TextAsset>(FactoryType.Asset, null, ECSDefinitionPath.LogicReqWeightPath);
            ReqWeightJson reqWeightJson = LitJson.JsonMapper.ToObject <ReqWeightJson>(jsonData.text);

            SetReqWeight(reqWeightJson);
            RegAllRequest();
        }
Ejemplo n.º 2
0
        private static void ShowWindow()
        {
            var window = GetWindow <LogicLayerEditorWindow>();

            window.titleContent = new GUIContent("请求权重设置");
            window.Show();

            if (EDTool.CheckFileInPath(Application.dataPath + JsonPath))
            {
                string dataJson = EDTool.ReadText(Application.dataPath + JsonPath);
                MReqWeightJson = LitJson.JsonMapper.ToObject <ReqWeightJson>(dataJson);
                ClearJson();
            }
        }
Ejemplo n.º 3
0
 private void SetReqWeight(ReqWeightJson json)
 {
     reqWeightConf = json;
 }