// Use this for initialization void Start() { model = new ShieldModel(); view = new ShieldView(); view.SetModel(model); view.SetUIItems(textStrength, textRepair, imageShield); view.SetImages(images); view.Refresh(); controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); }
void Start() { // model shieldModel = new ShieldModel(); // view shieldView = new ShieldView(); shieldView.SetModel(shieldModel); shieldView.SetUITexts(strengthText, repairableText); shieldView.SetImages(shieldStrengthImage, shieldStengthImages); shieldView.Refresh(); // controller shieldController = new ShieldController(); shieldController.SetShieldModel(shieldModel); shieldController.SetShieldView(shieldView); }