I want to have a credits button on my main menu that takes you on a click from my main menu scene to my credits scene. What is the code for that?
I need the code in C#.
I want to have a credits button on my main menu that takes you on a click from my main menu scene to my credits scene. What is the code for that?
I need the code in C#.
It depends what you using for displaying your menu (UI, GUI, etc…) ?
Application.LoadLevel("Credits");
UI :
using UnityEngine;
public class Load_Credits : MonoBehaviour {
public void CreditsScene() {
Application.LoadLevel(2);
}
}