public void GetToLevelSelect() { MainMenu.SetActive(false); CharacterMenu.SetActive(false); LevelMenu.SetActive(true); SetupMenu.SetActive(false); GetComponent <MenuControllScript>().ChangeMenu(); GetComponent <MenuControllScript>().menuState = MenuState.LevelSelect; }
public void GoToSetup() { MainMenu.SetActive(false); CharacterMenu.SetActive(false); LevelMenu.SetActive(false); SetupMenu.SetActive(true); GetComponent <MenuControllScript>().ChangeMenu(); GetComponent <MenuControllScript>().menuState = MenuState.PlayerConnect; }
// Start is called before the first frame update void Start() { MainMenu.SetActive(true); CharacterMenu.SetActive(false); LevelMenu.SetActive(false); SetupMenu.SetActive(false); if (ScoreScript.scoreScript == null) { ScoreScript.scoreScript = new ScoreScript(); ScoreScript.scoreScript.StartWorld(); } //Skapar de static script som finns }