Hi, I made a basic menu script using C# but I’m having an odd issue, For some reason putting a mouse over one option will color all of them.
public class HoverOver : MonoBehaviour
{
public string LevelToLoad;
public GameObject gameObject;
public bool isQuit;
void OnMouseOver()
{
gameObject.guiText.font.material.color = Color.magenta;
}
void OnMouseExit()
{
gameObject.guiText.font.material.color = Color.white;
}
void OnMouseDown()
{
Application.LoadLevel(LevelToLoad);
if (isQuit)
{
Application.Quit();
}
}
}