Code : Tout sélectionner
var siteweb = "";
function OnMouseDown () {
Debug.Log("livre clique"+siteweb);
if ((Application.platform == RuntimePlatform.OSXWebPlayer) || (Application.platform == RuntimePlatform.WindowsWebPlayer)) {
//var siteweb : WWW = new WWW (url);
Application.ExternalEval("window.open('siteweb');");
} else {
Debug.Log("livre en mode editeur");
Application.OpenURL("siteweb");
}
}