Hi guys , I am trying to create a custom button for example a fire button for unity … I don’t know how can I to do so :
for example I have GUI texture like button and should be a fire with touch
function Update () {
for (var touch : Touch in Input.touches) {
if (touch.phase == TouchPhase.Began) {
// if the button == myButton ,, the button do something
}
}