- 博客(3)
- 收藏
- 关注
原创 字节流转化工具
// 工具public class MemoryStreamTool : MemoryStream{#region 构造方法public MemoryStreamTool (){}public MemoryStreamTool (byte[] buffer) : base (buffer){}#endregion#region Int/// <summary>/// 从流中读取一个Int
2017-11-07 22:17:05
856
原创 Json解析
解析方法一(带枚举):// 解析物品信息void ParseItemJson (){ itemList = new List<Item> (); //文本为在Unity里面是 TextAsset类型 TextAsset itemText = Resources.Load<TextAsset> ("Items"); //物品信息的Json格式 string
2017-11-07 17:40:48
331
原创 Unity中对象池的使用
Unity中对象池的使用定义对象池public class NewObjectPooler : MonoBehaviour{ public GameObject _gameObject; //需要创建的预制对象 public int int_PooledAmount = 15; //初始化数量 public Transform _tranForm;
2017-11-03 15:00:49
235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人