C# Errors

Error:

Assets/Scripts/GUI/MainMenu.cs(75,55): error CS0103: The name `OptionsMenu’ does not exist in the current context

using UnityEngine;
using System.Collections;

public class MainMenu : MonoBehaviour 
{
	
	public Ray ray;
	public RaycastHit Hit;
	
	public GameObject MainM;
	public GameObject OptionsM;
	
	public enum Menus
	{
		MainMenu,
		OptionsMenu
	}
	
	public Menus CurrentMenu;
	
	void Start()
	{
		CurrentMenu = Menus.MainMenu;
	}

	void Update() 
	{
		if(CurrentMenu == Menus.MainMenu)
		{
			OptionsM.SetActive(false);
			MainM.SetActive(true);
		}
		else if(CurrentMenu == Menus.OptionsMenu)
		{
			OptionsM.SetActive(true);
			MainM.SetActive(false);
		}
		
		TapSelect();
	}
	
	private void TapSelect()
	{
		foreach(Touch touch in Input.touches)
		{
			if(touch.phase == TouchPhase.Began)
			{
				ray = Camera.main.ScreenPointToRay(touch.position);
				
				if(Physics.Raycast(ray, out Hit))
				{
					if(Hit.transform.tag == "PlayButton")
					{
						//Debug.Log("Hit Play Button");
						Application.LoadLevel(1);
					}
				}
			}
		}
		
		ray = Camera.main.ScreenPointToRay(Input.mousePosition);
		
		if(Physics.Raycast(ray, out Hit))
		{
			if(Input.GetMouseButton(0))
			{
				if(Hit.transform.tag == "PlayButton")
				{
					//Debug.Log("Hit Play Button");
					Application.LoadLevel(1);
				}
				else if(Hit.transform.tag == "OptionsButton")
				{
					//Debug.Log("Hit Options Button");
					CurrentMenu = OptionsMenu;
					
				}
			}
		}
	}
}
CurrentMenu = Menus.OptionsMenu;

Do you actually re-read or otherwise debug your scripts? Half the stuff you’ve posted has been typos and none of it has been Unity specific…

What?

What? Kelso is correct to say that it doesn’t look like Joey is checking his scripts. Every post of his so far have been due to a simple typo. One of them was he forgot a “)” at the end of an “if” statement: if(`snip`{ and the other was his Update method read : void Upate)){ He should be able to see these error.

Are people looking at a different post than me?

Look at OP’s post history.