Hi,
I made a fire button which works pretty standard with the OnPress function.
Example Code:
void OnPress(bool pressed) {
isPressed = pressed;
}
void Update () {
if(isPressed) {
doSomething();
} else {
doSomethingElse();
}
Nothing fancy.
I tested the game on different devices Samsung Galaxy S3, S3 Mini, some older LG Optimus 3D device and a Galaxy Tab 4. It works on all devices, but on the S3 Mini the button sometimes won't register that it is hit or pressed or anything, but it's only this button, all other buttons are working as intended.
I'm using Unity Free 4.5.2f1 and NGUI 3.6.8.
Ben