Hi every body, i have a menu, in this menu i have 3 buttons (Play, Settings, Quit) and i want when use specific button when i touch the button on my mobile screen . i give this script for the 3 buttons, the problem is when i clik on Play the game quit, help me please .
using UnityEngine;
using System.Collections;
public class NewBehaviourScript402 : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Touch touch = Input.GetTouch(s);
if(touch.phase == TouchPhase.Began)
{
Application.LoadLevel("Jeu");
}
}
}