private void Start() { //model ShieldModel model = new ShieldModel(); //view ShieldView view = new ShieldView(); //controller ShieldController controller = new ShieldController(); view.SetUITexts(model.GetStrength(), model.IsRepairable()); }
// Use this for initialization void Start() { //Model model = new ShieldModel(); //View view = new ShieldView(); view.setModel(model); view.SetUITexts(strengthValue, repairableValue); view.Refresh(); //controller 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); }
void Start() { //model model = new ShieldModel(); //view view = new ShieldView(); view.SetModel(model); view.SetUITexts(StrengthText, TrueOrFalse); view.Refresh(); //controller controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); controller.SetButtons(Damage1, Damage10); }
void Start() { // Model model = new ShieldModel(); // View view = new ShieldView(); view.SetModel(model); view.SetUITexts(Damage1, Damage10); view.Refresh(); //Controller controller = new ShieldController(); controller.SetModel(model); controller.SetView(view); controller.SetDamage1Text(Damage1); }
public void CheckStrengthValue() { int strenght = model.GetStrength(); if (strenght == 0 && strenght < 10) { view.SetUITexts(model.GetStrength(), model.IsRepairable()); //view.SetImageSprite (0); } else if (strenght == 10 && strenght < 20) { } else if (strenght == 20 && strenght < 30) { } else if (strenght == 30 && strenght < 40) { } else if (strenght == 40 && strenght < 50) { } else if (strenght == 50 && strenght < 60) { } else if (strenght == 60 && strenght < 70) { } else if (strenght == 70 && strenght < 80) { } else if (strenght == 80 && strenght < 90) { } else if (strenght == 90 && strenght <= 100) { } }