• 大小: 911KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: 其他
  • 标签: Unity  UI  

资源简介

一套完整的UnityUI框架、可用于实际开发。经过本人开发的考验

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace CEngine
{
    public class AppSetting
    {
        public static int appId = 100;
        public static Platform platform = Platform.UNITY_EDITOR;
        private static string downloadurl;

        public static bool isRemote
        {
            get { return ConfigManager.instance.GetBoolValue(“isRemote“); }
        }

        public static bool localLua
        {
            get { return ConfigManager.instance.GetBoolValue(“localLua“); }
        }

        /// 
        /// 子游戏名称
        /// 

        public static string chessName
        {
            get { return ConfigManager.instance.GetValue(AppSetting.appId.ToString()); }
        }

        public static string vercachePath
        {
            get
            {
                if (Application.isPlaying && isRemote)
                    return downloadurl;
                return localDataPath; //Application.streamingAssetsPath;

            }
            set
            {
                downloadurl = value;
            }
        }

        public static string rootPath
        {
            get
            {
                if (isRemote)
                    return persistentDataPath;

                return localDataPath;

            }
        }

        public static string persistentDataPath
        {
            get
            {
                string perDataPath = null;
                if (appId == 100)
                    perDataPath = Application.persistentDataPath;
                else
                    perDataPath = System.IO.Path.Combine(System.IO.Path.Combine(Application.persistentDataPath “Chess“) ConfigManager.instance.GetValue(appId.ToString()));
                return perDataPath;
            }
        }

        public static string localDataPath
        {
            get
            {
                string rootpath = System.IO.Path.GetDirectoryName(Application.dataPath);
                string localpath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(rootpath) “LocalData“);
                string outpath = null;
                if (appId == 100)
                    outpath = localpath;
                else
                    outpath = System.IO.Path.Combine(System.IO.Path.Combine(localpath “Chess“) ConfigManager.instance.GetValue(appId.ToString()));
                return outpath;
            }
        }

    }

    public enum Platform
    {
        UNITY_EDITOR = 0
        UNITY_STANDALONE_WIN
        UNITY_ANDROID
        UNITY_IPHONE
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      13312  2018-01-30 15:42  CEngine20180102\.vs\CEngine\v15\.suo

     文件       2734  2017-12-14 13:12  CEngine20180102\AppSetting.cs

     文件      65536  2018-01-11 11:18  CEngine20180102\bin\Debug\CEngine.dll

     文件     204288  2018-01-11 11:18  CEngine20180102\bin\Debug\CEngine.pdb

     文件      11140  2018-01-11 11:18  CEngine20180102\bin\Debug\CEngine.xml

     文件    1541120  2017-05-08 20:50  CEngine20180102\bin\Debug\UnityEngine.dll

     文件     248832  2017-05-08 20:06  CEngine20180102\bin\Debug\UnityEngine.UI.dll

     文件     245582  2017-05-08 20:51  CEngine20180102\bin\Debug\UnityEngine.UI.xml

     文件    2702449  2017-05-08 20:51  CEngine20180102\bin\Debug\UnityEngine.xml

     文件       4701  2017-12-25 20:04  CEngine20180102\CEngine.csproj

     文件        922  2017-12-16 17:15  CEngine20180102\Launcher.cs

     文件      13444  2017-12-12 18:08  CEngine20180102\Modules\ResourceModule\AssetBundleLoad.cs

     文件       2979  2017-12-20 09:51  CEngine20180102\Modules\ResourceModule\CacheModule\AssetBundleCache.cs

     文件       2683  2017-12-13 11:20  CEngine20180102\Modules\ResourceModule\CacheModule\Caches.cs

     文件       2134  2017-12-12 13:26  CEngine20180102\Modules\ResourceModule\CacheModule\GameobjectPool.cs

     文件       1890  2017-12-13 10:29  CEngine20180102\Modules\ResourceModule\CacheModule\Pools.cs

     文件       1597  2017-12-20 09:49  CEngine20180102\Modules\ResourceModule\CacheModule\SoundCache.cs

     文件       1444  2017-12-20 09:51  CEngine20180102\Modules\ResourceModule\CacheModule\SpriteCache.cs

     文件       1388  2017-12-12 13:26  CEngine20180102\Modules\ResourceModule\CacheModule\TextureCache.cs

     文件       3299  2017-12-13 15:27  CEngine20180102\Modules\ResourceModule\ResourceLoad.cs

     文件       8496  2017-12-20 09:49  CEngine20180102\Modules\ResourceModule\ResourceManager.cs

     文件       2764  2017-12-12 13:28  CEngine20180102\Modules\ResourceModule\TaskEntity\frametask.cs

     文件       2837  2017-12-12 13:25  CEngine20180102\Modules\ResourceModule\TaskEntity\ITask.cs

     文件       5428  2017-12-12 13:25  CEngine20180102\Modules\ResourceModule\TaskEntity\ThreadTask.cs

     文件       4071  2017-12-13 13:50  CEngine20180102\Modules\ResourceModule\TaskEntity\WWWTask.cs

     文件       9982  2017-12-23 09:35  CEngine20180102\Modules\SettingModule\SettingParser.cs

     文件        577  2017-12-13 18:01  CEngine20180102\Modules\UIModule\Enums.cs

     文件       5407  2017-12-20 09:48  CEngine20180102\Modules\UIModule\UILoader.cs

     文件      11877  2017-12-20 10:05  CEngine20180102\Modules\UIModule\UIManager.cs

     文件      15638  2017-12-20 09:47  CEngine20180102\Modules\UIModule\UIMould.cs

............此处省略45个文件信息

评论

共有 条评论