Exemplo n.º 1
0
    private void Start()
    {
        try
        {
            level = LevelLoader.LoadLevel("test");
        } catch (IOException)
        {
            ErrorMessageWindow.Show("Could not open level");
            return;
        } catch (Exception)
        {
            ErrorMessageWindow.Show("Could not load level. Most likely an invalid format");
            return;
        }

        playGrid.InitGrid();
        playGrid.AddAppliances(level.StaticAppliancesInfos);
    }