Unity3D Method 설명
foreach( Touch tmp in Input.touches)
{
if(tmp.phase == TouchPhase.Began)
{
touchStart = tmp.position;
}
if(tmp.phase == TouchPhase.Moved)
{
Vector3 touchEnd = tmp.position;
if(touchEnd.y - touchStart.y > 100)
{
StartCoroutine("JumpHuman");
}
if(canTurn)
{
if(touchEnd.x - touchStart.x > 100)
{
RotateHuman("RIGHT");
}
if(touchEnd.x - touchStart.x < -100)
{
RotateHuman("LEFT");
}
}
}
}
Quaternion ang = Quaternion.identity; ang.eulerAngles = new Vector3(0, 95, 0);
| Unity3D 고급과정 4일차 필기내용 - T아카데미 (0) | 2013.10.12 |
|---|---|
| Unity3D 고급과정 3일차 필기내용 - T아카데미 (0) | 2013.10.10 |
| Unity3D 고급과정 1일차 필기내용 - T아카데미 (4) | 2013.10.08 |
| 게임프로그래밍에 앞써 코딩연습하기 (5) | 2012.03.19 |
| 게임프로그래밍 수업시작! (0) | 2012.03.05 |
댓글 영역