Graphics Reference
In-Depth Information
break;
} // <- end switch
}
void LoadLevel( string whichLevel )
{
Application.LoadLevel( whichLevel );
}
void GoMainMenu()
{
whichMenu=0;
}
void ShowOptionsMenu()
{
whichMenu=1;
}
void ShowAudioOptionsMenu()
{
whichMenu=3;
}
void ShowGraphicsOptionsMenu()
{
whichMenu=4;
}
void SaveOptionsPrefs()
{
PlayerPrefs.SetFloat(gamePrefsName+"_SFXVol",
audioSFXSliderValue);
PlayerPrefs.SetFloat(gamePrefsName+"_MusicVol",
audioMusicSliderValue);
PlayerPrefs.SetFloat(gamePrefsName+"_GraphicsDetail",
graphicsSliderValue);
// set the quality setting
QualitySettings.SetQualityLevel( (int)graphicsSliderValue,
true);
}
void ConfirmExitGame()
{
whichMenu=2;
}
void ExitGame()
{
// tell level loader to shut down the game for us
Application.Quit();
}
}
Search WWH ::




Custom Search