It says that an object reference is required to access a non static member for Camera.cullingMask. Help!
using UnityEngine;
using System.Collections;
public class StartMenuControl : MonoBehaviour
{
public bool isStart;
public bool isLoad;
public bool isOptions;
public bool isQuit;
void OnMouseUp()
{
if (isQuit == true)
{
Application.Quit ();
}
else if (isOptions == true)
{
Camera.cullingMask |=(1<<LayerMask.NameToLayer (" Options Screen"));
Camera.cullingMask &= ~(1<<LayerMask.NameToLayer("Main Screen"));
}
}
}