Hullo Unity world,
I am trying to script code that allows a user to press multiple guiTextures at the same time. Example- The guiTextures are up, left and right. I would like to be able to go left and up at the same time but I am struggling to code in my textures to the code below? :-
var ball : Transform;
var ArrowLeft : GUITexture;
var ArrowRight : GUITexture;
var ArrowUp : GUITexture;
function Update()
{
var count : int = Input.touchCount;
for(var i: int = 0;i < count; i++)//for multi touch
{
var touch : Touch = Input.GetTouch(i);
if(guiTexture.HitTest(touch.position) && touch.phase == TouchPhase.Began)
{
HOW WOULD I IMPLEMENT MY THREE ACTIONS INTO HERE?? :/
}
}
}