Okay, I can help you make the touch input button :) first make a GUI texture wich will be your touchscreen button. And then add this part to your code's input part. (Sorry I am using ipad so I cant made code section so im just gonna write it)
var TouchButton : GUITexture; //drag here your gui texture button
function Update(){
for (var evt : Touch in Input.touches) {
var HitTest1 = TouchButton.HitTest(evt.position);
if (evt.phase == TouchPhase.Began) {
if(HitTest1){ //here add what will happen if this button gets touch
Answer me did it work! :)
↧