AchievementScreen.EndScene C# (CSharp) Method

EndScene() public method

public EndScene ( ) : void
return void
	public void EndScene ()
	{
		// Make sure the texture is enabled.
		screenFader.enabled = true;
		
		// Start fading towards black.
		FadeToBlack();
		// If the screen is almost black...
		if (screenFader.color.a >= 0.45f) {
			// ... reload the level.
			sceneEnding = false;
			if(destination == "Welcome"){
				Application.LoadLevel ("WelcomeScreen");
			}
		}
	}