摘要:
今天小伙伴问我如何自己写一段代码检测 单击 双击 和 拖放.于是就写了这段代码O(∩_∩)O~ 代码如下: using UnityEngine;
using System.Collections; public class Test2 : MonoBehaviour { public float oneTime; //检测双击的有效时间 privat... 阅读全文
摘要:
练习下矩阵的基本运算:O(∩_∩)O~ using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; namespace ConsoleApplication4
{ class MyMatrix3 { ... 阅读全文
摘要:
using UnityEngine;
using System.Collections; public class ProjectileTest : MonoBehaviour
{ public GameObject target; public float speed = 10; private float distanceToTarget; priv... 阅读全文