Know that this is perhaps an odd question to ask but what does this script do?
//variables which construct the Rectangle
var Rect = Rect(Screen.width,Screen.height,Screen.width,Screen.height);
var HorizontalPositionx : float;
var VerticalPositiony : float;
var Width : float;
var Height : float;
var particle : GameObject;
var custom : GUIStyle;
function Update(){
Rect.y = Screen.height/VerticalPositiony;
Rect.x = Screen.width/HorizontalPositionx;
Rect.height = Screen.height/Height;
Rect.width = Screen.width/Width;
if (Rect.Contains(Input.mousePosition)){
if(Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began){
// Create a particle if hit
Instantiate (particle, transform.position, transform.rotation);
Application.LoadLevel(0);
}
}
}
//you can edit this to show whatever your button is later but for now this just shows where your rect is
function OnGUI(){
GUI.Box(Rect, “Button Rect”, custom);
}