|
this is my code, it can work on unity 3D, but when i depoly it on ipad, it can not work. how to change it? help, thanks function OnMouseDown() { if (transform.position.y < 1.25) { // Only pick up coin if below this height rigidbody.isKinematic = true; clicked = true; mouseCursor.gameObject.audio.Play(); var startPosition = transform.position; var moveStartTime = Time.time; raycastArea.active = true; }
(comments are locked)
|
|
Short answer- You don't. Long answer- Instead you can use Input.GetTouch! Any more suggestion
Oct 05 '11 at 01:37 AM
sally
(comments are locked)
|
