Hi Friends,
I am using Touch method for pause the game and arise one menu screen.
For Pause Menu I am using this script :
var count : int = Input.touchCount;
if(count>= 1)
{
var touch : Touch = Input.GetTouch(0);
if (btnPaused.HitTest(touch.position))
{
btnNewGame.active = true;
btnHome.active = true;
btnResume.active = true;
btnBackGround.active = true;
Time.timeScale = 0.0;
}
}
This script is work properly and arise pause screen menu but after that touch method not work on that pause menu.
I am using Update() for calling these function.
Thanks in advance…