i would love it if someone code put this code into js would love them forever haha, but i would really appreciate it!
using UnityEngine;
using System.Collections;
public class MenuObject: MonoBehaviour
{
will quit the application
public bool isQuit = false;
void OnMouseEnter()
{
renderer.material.color = Color.red;
}
void OnMouseExit()
{
renderer.material.color = Color.white;
}
void OnMouseDown()
{
if(isQuit)
{
Application.Quit();
}
else
{
Application.LoadLevel(1);
}
}
}