MouseUp, MouseEnter and MouseExit work on android?

Hello.

So, i’m making a application for Android and i use MouseUp, MouseEnter and MouseExit, to change the color of the text and open a new screen and url. So my question is, this functions work on android?
Because i tested on a Android Simulator for PC and worked but i don’t tested on my phone because it’s broken, so can someone tell me if this functions works for android. If don’t work, say to me the function that work.

Code to enter on a new screen:

var isQuit=false;

function OnMouseEnter(){
	renderer.material.color=Color.red;
}

function OnMouseExit(){
	renderer.material.color=Color.white;
}

function OnMouseUp(){
	if (isQuit==true) {
		Application.Quit();
	}
	else {
		Application.LoadLevel(1);
	}
}

function Update(){
	if (Input.GetKey(KeyCode.Escape)) {
    		Application.Quit();
	}
}

Code to enter on a website:

var isQuit=false;

function OnMouseEnter(){
	renderer.material.color=Color.red;
}

function OnMouseExit(){
	renderer.material.color=Color.white;
}
function OnMouseUp(){
	if (isQuit==true) {
		Application.Quit();
	}
	else {
		Application.OpenURL ("url");
	}
}

@Datapax Thanks for the fast reply! I will look this. And also, i will test in more Simulators to see if work, ok?

Thanks!

You should check the Touch structure.
See here.
If you use OnMouse events Unity will have to do some work to make them function “as you expect” , but it is better to use Touch if you are developing for mobiles.

However, your code should work, but you may get some undesired “effects” as there are no such things as MouseEnter, MouseExit, MouseDown or MouseUp on a mobile device.