随笔分类 -  c#

摘要:using System; using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine; using Random = System.Random; public class MyThreadManger : MonoBehaviour { H... 阅读全文
posted @ 2018-03-21 16:12 杨小行 阅读(198) 评论(0) 推荐(0)
摘要:using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using UnityEditor; using UnityEngine; public static class M_ProcessExcuter {... 阅读全文
posted @ 2018-03-21 16:10 杨小行 阅读(2212) 评论(0) 推荐(0)
摘要:unity中会有像[range(0,1)]这样的特性写法,其非常方便的限制了变量范围但是。我一直很好奇这是怎么实现的,所以翻了翻其他博主对其的解释和应用。 一,什么是特性 有一种解释我很能接受,特性就像牡蛎附在对象上。其本质也是一种对象,特殊之处在于其编译时就存在了,也就是在程序运行之前就存在了。 阅读全文
posted @ 2017-12-10 22:58 杨小行 阅读(9921) 评论(1) 推荐(1)