Hi,
I tried creating a script with this
function Update () {
for (var evt : iPhoneTouch in iPhoneInput.touches)
{
if (evt.phase == iPhoneTouchPhase.Moved)
{
look2.SetInput (evt.positionDelta);
}
}
}
But I get an error
NullReferenceException: Object reference not set to an instance of an object
iPhoneAnalogSticks.Update () (at Assets/iPhoneAnalogSticks.js:13)
Can anybody help?