//private LevelView2 view2

    void Start()
    {
        //Text File Class
        textFile = new LevelLayoutFromTextFile();
        textFile.ReadTextFile();

        //model
        model = new LevelModel(18);

        // Controller

        /*
         * controller = new LevelController();
         * controller.SetModel(model);
         * controller.SetView(view);
         */

        inputController = new InputController();
        inputController.SetModel(model);

        // View
        view = new LevelView();
        // view.SetModel(model);
        view.SetTextFile(textFile);
        // view.Refresh();
        // view.UpdateTextDisplay(z);
    }
Exemple #2
0
    void Start()
    {
        //Text File Class
        textFile = new LevelLayoutFromTextFile();
        textFile.ReadTextFile();

        //model
        model = new LevelModel(18);

        // Controller
        controller = new LevelController();
        controller.SetModel(model);
        controller.SetView(view);

        // View
        view = new LevelView();
        // view.SetModel(model);
        view.Refresh();

        DisplayTextLevel();
    }
/*
 *  public void SetModel(LevelModel model)
 *  {
 *       this.model = model;
 *  }
 * /*
 *  public void SetController(LevelController controller )
 *  {
 *      this.controller = controller;
 *  }
 */

    public void SetTextFile(LevelLayoutFromTextFile textFile)
    {
        this.textFile = textFile;
    }