摘要: 今天小伙伴问我如何自己写一段代码检测 单击 双击 和 拖放.于是就写了这段代码O(∩_∩)O~ 代码如下: using UnityEngine; using System.Collections; public class Test2 : MonoBehaviour { public float oneTime; //检测双击的有效时间 privat... 阅读全文
posted @ 2015-04-05 21:43 盘子脸 阅读(2056) 评论(0) 推荐(1) 编辑
摘要: 练习下矩阵的基本运算:O(∩_∩)O~ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { class MyMatrix3 { ... 阅读全文
posted @ 2015-04-05 15:11 盘子脸 阅读(583) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; public class ProjectileTest : MonoBehaviour { public GameObject target; public float speed = 10; private float distanceToTarget; priv... 阅读全文
posted @ 2015-04-05 14:29 盘子脸 阅读(2815) 评论(0) 推荐(0) 编辑