示例#1
0
        public App(Main main)
        {
            this.main         = main;
            appUI             = main.GetComponent <AppUI>().Init();
            currentUnpackMode = (UnpackMode)appUI.m_Dropdown_SelectMode.value;

            //编辑器下测试用
#if UNITY_EDITOR
            plistFilePath = "Assets/Test/elem.plist";
            pngFilePath   = "Assets/Test/elem.png";
            main.StartCoroutine(LoadFiles());
#endif

            RegisterEvents();
        }
示例#2
0
        public App(Main main)
        {
            this.main         = main;
            appUI             = main.GetComponent <AppUI>().Init();
            currentUnpackMode = (UnpackMode)appUI.m_Dropdown_SelectMode.value;

            //编辑器下测试用
//#if UNITY_EDITOR
//            plistFilePath = @"F:\assets\Art\Monster\mon_058.plist";
//            pngFilePath = @"F:\assets\Art\Monster\mon_058.pvr.ccz";
//            main.StartCoroutine(LoadFiles());
//#endif

            RegisterEvents();
        }
示例#3
0
        public App(Main main)
        {
            this.main         = main;
            appUI             = main.GetComponent <AppUI>().Init();
            currentUnpackMode = (UnpackMode)appUI.m_Dropdown_SelectMode.value;

            //编辑器下测试用
#if UNITY_EDITOR
            plistFilePath = @"C:\Users\Administrator\Desktop\plist&png\test.plist";
            pngFilePath   = @"C:\Users\Administrator\Desktop\plist&png\test.png";
            main.StartCoroutine(LoadFiles());
#endif

            RegisterEvents();
        }
示例#4
0
        private void Start()
        {
            Screen.SetResolution(800, 600, false);
            main              = this;
            appUI             = GetComponent <AppUI>();
            currentUnpackMode = (UnpackMode)appUI.m_Dropdown_SelectMode.value;

#if UNITY_EDITOR
            //测试用
            plistFilePath = @"C:\Users\Administrator\Desktop\999.plist";
            pngFilePath   = @"C:\Users\Administrator\Desktop\999.png";
            StartCoroutine(LoadFiles());
#endif

            RegisterEvents();
        }