Hi…
I got problem and can’t do anything from 2 month so I did another project, but I still interest with this project. Could anybody help me? I am newbie on Unity …
there are the details:
var resume : GUITexture;
var resume_tex : Texture2D[];
var pauseMenu : GUITexture;
var click : AudioClip;
function Start () {
}
function Update () {
//if (Input.touchCount>0) {
// for (var touch : Touch in Input.touches) {
//
//
// if (touch.phase == TouchPhase.Began){
//
// if (play.HitTest(touch.position)) {
// play.texture = play_tex[1];
//
// Application.LoadLevel("QuickPlay");
//
//
// }
//
//
//
// }
// if (touch.phase == TouchPhase.Ended){
// play.texture = play_tex[0];
//
// }
//
// }
//
//
// }
}
function OnMouseUp(){
resume.texture = resume_tex[0];
Time.timeScale = 1;
pauseMenu.active = false;
Application.LoadLevel("pauseMenu");
}
function OnMouseDown(){
GetComponent.<AudioSource>().PlayOneShot(click);
resume.texture = resume_tex[1];
}