资源简介
unity+tuio协议的多点触控,简单的Demo...........................
代码片段和文件信息
using UnityEngine;
using System.Collections;
public class BBChangeColorAction : MonoBehaviour {
public bool state = false;
public bool pressToToggle = false;
public Color onStateColor = Color.green;
public Color offStateColor = Color.red;
public Color pressedStateColor = Color.yellow;
void Start()
{
if (state) {
GetComponent().material.color = onStateColor;
} else {
GetComponent().material.color = offStateColor;
}
}
// Use this for initialization
public void doTouchDown () {
GetComponent().material.color = pressedStateColor;
}
public void doTouchUp () {
if (pressToToggle) state = !state;
if (state) {
GetComponent().material.color = onStateColor;
} else {
GetComponent().material.color = offStateColor;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6148 2011-01-24 18:53 uniTUIO_4_Unity3\.DS_Store
..A..H. 33792 2017-11-16 17:23 uniTUIO_4_Unity3\.vs\uniTUIO_4_Unity3\v14\.suo
文件 9389 2017-11-16 17:19 uniTUIO_4_Unity3\Assembly-CSharp-firstpass.csproj
文件 6148 2011-01-24 18:47 uniTUIO_4_Unity3\Assets\.DS_Store
文件 15573 2009-10-03 16:29 uniTUIO_4_Unity3\Assets\Images\blursor.png
..A..H. 1648 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\blursor.png.me
文件 2377 2009-09-21 04:15 uniTUIO_4_Unity3\Assets\Images\cancel.png
..A..H. 1642 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\cancel.png.me
I.A.... 801 2017-11-16 16:57 uniTUIO_4_Unity3\Assets\Images\Materials\cancel.mat
..A..H. 216 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\Materials\cancel.mat.me
..A..H. 206 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\Materials.me
文件 2012 2010-03-27 07:50 uniTUIO_4_Unity3\Assets\Images\pause.png
..A..H. 1647 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\pause.png.me
文件 2597 2010-03-27 07:50 uniTUIO_4_Unity3\Assets\Images\play.png
..A..H. 1647 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\play.png.me
文件 1726 2009-09-21 04:26 uniTUIO_4_Unity3\Assets\Images\pressed.png
..A..H. 1647 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images\pressed.png.me
..A..H. 206 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Images.me
I.A.... 815 2017-11-16 16:57 uniTUIO_4_Unity3\Assets\Materials\1x1plane-planemat 1.mat
..A..H. 216 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Materials\1x1plane-planemat 1.mat.me
I.A.... 813 2017-11-16 16:57 uniTUIO_4_Unity3\Assets\Materials\1x1plane-planemat 2.mat
..A..H. 216 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Materials\1x1plane-planemat 2.mat.me
I.A.... 819 2017-11-16 16:57 uniTUIO_4_Unity3\Assets\Materials\1x1plane-planemat.mat
..A..H. 216 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Materials\1x1plane-planemat.mat.me
..A..H. 206 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Materials.me
文件 3478 2009-09-12 10:14 uniTUIO_4_Unity3\Assets\Models\1x1Plane.jas
..A..H. 2114 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Models\1x1Plane.jas.me
I.A.... 762 2017-11-16 16:57 uniTUIO_4_Unity3\Assets\Models\Materials\1x1plane-planemat.mat
..A..H. 216 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Models\Materials\1x1plane-planemat.mat.me
..A..H. 206 2017-11-16 16:56 uniTUIO_4_Unity3\Assets\Models\Materials.me
............此处省略1610个文件信息
- 上一篇:cms后台管理系统
- 下一篇:Opcli
nk 8.0.0
评论
共有 条评论