private void mainMenu_button_Click(object sender, EventArgs e)
        {
            Dispose();
            gs.MusicStop();
            gs.Dispose();

            MainMenu1 m = new MainMenu1();

            m.Show();
        }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        if (instance == null)
        {
            //if not, set instance to this
            instance = this;
        }

        //If instance already exists and it's not this:
        else if (instance != this)
        {
            //Then destroy this. This enforces our singleton pattern, meaning there can only ever be one instance of a GameManager.
            Debug.Log("Hi");
        }

        try
        {
            Reset.instance.ScoreCanvas.SetActive(true);
            StartNewWait = false;
            OptionsBool  = false;
            ExitBool     = false;
            ContinueBool = false;
            LerpStart    = false;
            LerpOptions  = false;
            LerpExit     = false;
            LerpContinue = false;


            AudioSource = GetComponent <AudioSource>();
        }

        catch (Exception)
        {
            Debug.Log("Error Caught");
        }
    }
 public SelectMap(MainMenu1 main_m)
 {
     main = main_m;
     InitializeComponent();
     PreloadList();
 }