Пример #1
0
 public void GetToLevelSelect()
 {
     MainMenu.SetActive(false);
     CharacterMenu.SetActive(false);
     LevelMenu.SetActive(true);
     SetupMenu.SetActive(false);
     GetComponent <MenuControllScript>().ChangeMenu();
     GetComponent <MenuControllScript>().menuState = MenuState.LevelSelect;
 }
Пример #2
0
 public void GoToSetup()
 {
     MainMenu.SetActive(false);
     CharacterMenu.SetActive(false);
     LevelMenu.SetActive(false);
     SetupMenu.SetActive(true);
     GetComponent <MenuControllScript>().ChangeMenu();
     GetComponent <MenuControllScript>().menuState = MenuState.PlayerConnect;
 }
Пример #3
0
    // 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
    }