- 博客(4)
- 收藏
- 关注
原创 无限滚动列表 更新优化
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using SimpleJSON; using YanhuaMMO; public class DynamicHeightL...
2019-06-21 10:16:35 430 1
原创 字符串转 Mesh
void Start () { for(int i=0;i < 3;i++) { GameObject txa = new GameObject(); txa.AddComponent(typeof(MeshFilter)); txa.AddComponent(type...
2019-06-19 17:15:30 177
原创 元素高度可变 无限滚动列表
必须继承IBeginDragHandler, IDragHandler, IEndDragHandler 这几个接口,否则拖动的时候会响应列表元素的点击 事件。 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; using Unity...
2019-06-14 19:35:57 588
原创 c# 无向连通算法(代码极简)
因为游戏寻路需求,要做一个自动跳转地图的功能,为此做了这个无向连通算法,如下图,数字表示地图,比如我要从地图1走到地图6,有多少种走法,最短路径是哪个。 直接上代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Task...
2019-04-16 14:14:34 325
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人