上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
摘要: 1 using System; 2 3 namespace ConsoleApplication1 4 { 5 interface IInterface 6 { 7 void Add(int num); 8 } 9 10 struct Test : IInterface 11 { 12 public 阅读全文
posted @ 2019-04-08 20:48 小·糊涂仙 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 测试工程: 链接:https://pan.baidu.com/s/13LDXG2Uk-nI80sXKguQBBw 提取码:l9oa 阅读全文
posted @ 2019-03-31 17:23 小·糊涂仙 阅读(2223) 评论(0) 推荐(0) 编辑
摘要: m_ 类的成员变量(member)sm_ 类的静态成员变量(static member)s_ 静态变量(static)g_ 外部全局变量(global)sg_ 静态全局变量(static global) n 整型和位域变量(number)e 枚举型变量(enumeration)c 字符型变量(cha 阅读全文
posted @ 2019-03-31 16:17 小·糊涂仙 阅读(2736) 评论(0) 推荐(0) 编辑
摘要: 1 using UnityEngine; 2 3 [ExecuteInEditMode] //添加脚本、启动、Stop的时候执行Awake() Start() 4 public class test : MonoBehaviour 5 { 6 [SerializeField] 7 int val; 8 void Awake() 9 { 10... 阅读全文
posted @ 2019-03-27 21:55 小·糊涂仙 阅读(2728) 评论(0) 推荐(0) 编辑
摘要: 不同的字符所占的字节是不同的。 ASCII码: 一个英文字母(不分大小写)占一个字节的空间,一个中文汉字占两个字节的空间。一个二进制数字序列,在计算机中作为一个数字单元,一般为8位二进制数,换算为十进制。最小值0,最大值255。如一个ASCII码就是一个字节。 UTF-8编码: 一个英文字符等于一个 阅读全文
posted @ 2019-03-26 10:59 小·糊涂仙 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/zxin/archive/2013/01/26/2877765.html 一、校验数字的表达式 二、校验字符的表达式 三、特殊需求表达式 阅读全文
posted @ 2019-03-19 16:48 小·糊涂仙 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1024 byte = 1 kb 1024 kb = 1 mb 1024 mb = 1 gb 1024 gb = 1 tb 但是,存储设备的生成厂家的是以 1000 制的 阅读全文
posted @ 2019-03-15 13:34 小·糊涂仙 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 之前一直在用的是NGUI,最近不知怎么突然兴趣来潮,想学习一下UGUI,毕竟,现在纵观Unity的市场,完全是UGUI的天下,NGUI已经渐渐退隐江湖,哈哈哈。。。 先来记录下,在图片资源导入到Unity后如何自动的对导入的图片进行一些特定的 格式设置、将packer tag 设置为图片所在文件夹的 阅读全文
posted @ 2019-03-14 18:29 小·糊涂仙 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 弧度数 = 角度数 * Mathf.Deg2Rad角度数 = 弧度数 * Mathf.Rad2Deg 阅读全文
posted @ 2019-03-13 14:58 小·糊涂仙 阅读(5840) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-12 14:53 小·糊涂仙 阅读(149) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页