Esempio n. 1
0
    public void SpaceDropLogic(int num)
    {
        Click.Play();

        if (num == 0) // start game
        {
            SceneManager.LoadScene("_Scene_0");
        }

        if (num == 3) // show space shooter history
        {
            SpaceHistoryDropdown.ClearOptions();
            LoadSpaceHistoryDropdown();
            SpaceHistoryPan.SetActive(true);
            Border.SetActive(true);
            CopyText.SetActive(false);
            CreatedByText.SetActive(false);
            MainText.SetActive(false);
            LogoutButton.SetActive(false);
            CopyBG.SetActive(false);
        }

        else // open configurations or game levels
        {
            OpenPannel2 = SpaceFileItems[num];
            OpenPannel2.SetActive(true);
            Border.SetActive(true);
            CopyText.SetActive(false);
            CreatedByText.SetActive(false);
            MainText.SetActive(false);
            LogoutButton.SetActive(false);
            CopyBG.SetActive(false);
        }
    }
Esempio n. 2
0
 public void ExitSpaceHistory()
 {
     Click.Play();
     Border.SetActive(false);
     SpaceHistoryPan.SetActive(false);
     CopyText.SetActive(true);
     CreatedByText.SetActive(true);
     MainText.SetActive(true);
     LogoutButton.SetActive(true);
     CopyBG.SetActive(true);
 }