Exemplo n.º 1
0
        public void LoadResCfgs(Action onFinish)
        {
            m_cNEDataLoader = new NEDataLoader();
            List <string> files = new List <string>();

            files.Add("Config/Remote/testRemote.bytes");
            Remote.Init();
            m_cNEDataLoader.Load(files, Remote.arrRemoteNodeDataType, onFinish);
        }
Exemplo n.º 2
0
        public void LoadResCfgs(Action onFinish)
        {
            m_cNEDataLoader = new NEDataLoader();
            List <string> files = new List <string>();

            files.Add("Config/Skill/test.bytes");
            Skill.Init();
            m_cNEDataLoader.Load(files, Skill.arrSkillNodeDataType, onFinish);
        }
Exemplo n.º 3
0
 void Start()
 {
     gameObject.AddComponent <ResourceSys>();
     ResourceSys.Instance.Init(true, "Assets/ResourceEx");
     m_cLoader = new NEDataLoader();
     Skill.Init();
     m_cLoader.Load(new List <string> {
         "Config/Skill/test.bytes"
     }, Skill.arrSkillNodeDataType, OnFinish);
     //Skill.Init();
     //NEData neData = NEUtil.DeSerializerObjectFromBuff(txt.bytes, typeof(NEData), Skill.lstSkillNodeDataType.ToArray()) as NEData;
     //skill = new Skill(null,neData);
 }