So iv been working on my main menu for obviously a game… and id like it if once you clicked on single player, it opens the game object of “New game” and “Load Game” 3d texts…
iv tried all i know and cant get it to work, Anyways here’s my script i tried>>
var NewGame = GameObject;
var LoadGame = GameObject;
function OnMouseEnter()
{
renderer.material.color = Color.red;
}
function OnMouseExit()
{
renderer.material.color = Color.white;
}
function OnMouseUp()
{
NewGame.Enabled = true;
LoadGame.Enabled = true;
}
if you didnt notice it also does a color change on enter and exit…