일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 몽고디비
- c++
- probability
- Deep learning
- 인공지능
- 데이터 과학
- 통계
- openCV
- Artificial Intelligence
- WebGL
- 빅데이터
- nodeJS
- node.js
- 빅 데이터
- Big Data
- MongoDB
- 빅데이타
- Statistics
- R
- 김양재 목사
- data science
- 확률
- 김양재 목사님
- 우리들교회
- Machine Learning
- 빅 데이타
- No SQL
- 딥러닝
- 주일설교
- 김양재
Archives
- Today
- Total
Scientific Computing & Data Science
Script for Mobile Touch Scree 본문
- Assign a proper GameObject to the script below
- Click the GameObject with the script
- Connect GUITexture in Property fo script("Touched")
using UnityEngine;
using System.Collections;
public class Touched : MonoBehaviour {
public GUITexture guiTex;
private Touch touch;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void FixedUpdate () {
touch = Input.GetTouch(0);
if(guiTex.HitTest(touch.position))
{
if(Input.GetTouch(0).phase == TouchPhase.Began)
{
// Touch 시작 시 실행
audio.Play();
}
}
}
}
'CG & Video Games > Unity 3D' 카테고리의 다른 글
Script for an Object Clicked - an Alternative Method (0) | 2013.05.26 |
---|---|
Script for an Object Clicked (0) | 2013.05.26 |
Fetching IP Address in C# (0) | 2013.05.26 |
Sending Commands Using RPC (0) | 2013.05.26 |
Script for Network Instantiate(JS) (0) | 2013.05.26 |
Comments