StartButtonClicked() public method

public StartButtonClicked ( ) : void
return void
Exemplo n.º 1
0
 // start tutorial
 public void TutorialYesClicked()
 {
     startOptions.StartButtonClicked();
     showPanels.HideTutorialPanel();
     tutorialOn = true;
     ShowTutCanvas();
     StartCoroutine(ChangeState(TutorialState.STATE_START, 1f));
     GameObject.Find("Player").GetComponent <PlayerControl>().loadProfile();
     musicPauseSlider.value = musicOptionsSlider.value;
     toggle.isOn            = toggleMenu.isOn;
 }
Exemplo n.º 2
0
 void UseButton()
 {
     if (Input.GetButton("Fire1") && CheckDelay())
     {
         if (Selection == 1)
         {
             inMenu = false;
             stsc.StartButtonClicked();
         }
         if (Selection == 2)
         {
             sp.ShowOptionsPanel();
             options = true;
         }
         if (Selection == 3)
         {
             sp.ShowScorePanel();
             options = true;
         }
         if (Selection == 4)
         {
             qa.Quit();
         }
     }
 }
Exemplo n.º 3
0
 // Update is called once per frame
 public void ButtonClicked()
 {
     if (name.Length > 0)
     {
         PlayerPrefs.SetString("name", name);
         PlayerPrefs.Save();
         startOptions.StartButtonClicked();
     }
 }
Exemplo n.º 4
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.RightArrow))
        {
            if (index < totalButtons - 1)
            {
                index++;
                selection = (selection + 1) % hands.Count;
            }
        }

        if (Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.LeftArrow))
        {
            if (index > 0)
            {
                index--;
                selection = (selection - 1) % hands.Count;
            }
        }

        if (Input.GetKeyDown(KeyCode.Return))
        {
            for (int i = 0; i < hands.Count; i++)
            {
                if (i == selection && hands[i].name == "StartHand")
                {
                    startOp.StartButtonClicked();
                }
                else if (i == selection && hands[i].name == "ControlsHand")
                {
                    showPanels.ShowOptionsPanel();
                }
                else if (i == selection && hands[i].name == "ExitHand")
                {
                    showPanels.HideOptionsPanel();
                }
                else if (i == selection && hands[i].name == "QuitHand")
                {
                    quitApp.Quit();
                }
                else if (i == selection && hands[i].name == "ResumeHand")
                {
                    pause.UnPause();
                }
                else if (i == selection && hands[i].name == "RestartHand")
                {
                    SceneManager.LoadScene(1);
                }
            }
        }

        UpdateSelection();
    }
 public void GoToCredits()
 {
     options.sceneToStart = 1;
     options.StartButtonClicked();
     options.inCreditsMenu = true;
 }