Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class St : MonoBehaviour
- {
- private bool visibleButton1 = true;
- private bool visibleButton2 = true;
- private bool visibleButton3 = true;
- private bool visibleButton4 = true;
- private bool visibleButton5 = true;
- private bool visibleButton6 = true;
- private bool visibleButton7 = true;
- private bool visibleButton8 = true;
- private bool visibleButtonp1 = true;
- private bool visibleButtonch = true;
- private bool visibleButton = true;
- private int pr3 = 0;
- private bool errorShow = false;
- public float mSec = 1;
- private int tru = 0;
- private int fal = 0;
- private int np = 0,n;
- private bool snp = true;
- private int[] truOtvets2 = new int[] { 1, 2, 3, 4, 5, 6, 7 };
- private int k = 0;
- private int z2 = 0;
- private int z1 = 0;
- private int z3 = 0;
- public KeyCode upKey = KeyCode.F1;
- void Start()
- {
- if (np == 0)
- {
- z2 = Random.Range(1, 4);
- np = Random.Range(1, 4);
- pr3 = Random.Range(1, 4);
- // n = Random.Range(0, 7);
- }
- }
- void OnGUI()
- {
- if (k == 7)
- {
- GUI.Box(new Rect((Screen.width-200) / 2 , (Screen.height-600) / 2 , 200,100), "Тест пройден!!!");
- GUI.color = Color.red;
- GUI.Label(new Rect((Screen.width-175) / 2, (Screen.height -550) / 2 , 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width ) / 2 , (Screen.height -550) / 2, 20, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width-175)/2 , (Screen.height -500) / 2, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width+20) / 2, (Screen.height -500) / 2 , 100, 20), fal.ToString());
- }
- else
- {
- if ((k == 6) && (np == 3))
- {
- GUI.Box(new Rect((Screen.width + 220) / 2 + 20, (Screen.height - 730) / 2 + 100, 350, 530), "Тест пройден!!!");
- GUI.color = Color.red;
- GUI.Label(new Rect((Screen.width - 175) / 2, (Screen.height - 550) / 2, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width) / 2, (Screen.height - 550) / 2, 20, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width - 175) / 2, (Screen.height - 500) / 2, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 20) / 2, (Screen.height - 500) / 2, 100, 20), fal.ToString());
- }
- }
- if (errorShow)
- {
- GUI.Box(new Rect(0, 0 , (Screen.width), (Screen.height)), " "); //мигание экрана
- GUI.color = Color.red;
- }
- switch (np)
- {
- case 1:
- {
- if (k!=7)
- {
- GUI.Box(new Rect((Screen.width)- (Screen.width)/3, 0,(Screen.width) / 3, (Screen.height)), "Компрессор");
- zapoln1();
- break;
- }
- break;
- }
- case 2:
- {
- if (k != 7)
- {
- GUI.Box(new Rect((Screen.width) - (Screen.width) / 3, 0, (Screen.width) / 3, (Screen.height)), "Терморегулятор");
- zapoln2();
- break;
- }
- break;
- }
- case 3:
- {
- if ((k != 6)&&(np==3))
- {
- GUI.Box(new Rect((Screen.width) - (Screen.width) / 3, 0, (Screen.width) / 3, (Screen.height)), "Пусковое реле");
- zapoln3();
- break;
- }
- else
- {
- visibleButtonp1 = false;
- break;
- }
- }
- }
- }
- void zapoln2()
- {
- switch (z2)
- {
- case 1:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.5. Нарушение регулировки терморегулятора."))
- {
- if (truOtvets2[k] == 5)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 2:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.5. Нарушение регулировки терморегулятора."))
- {
- if (truOtvets2[k] == 5)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 3:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.5. Нарушение регулировки терморегулятора."))
- {
- if (truOtvets2[k] == 5)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 4:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.5. Нарушение регулировки терморегулятора."))
- {
- if (truOtvets2[k] == 5)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- }
- }
- void zapoln3()
- {
- switch (z2)
- {
- case 1:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5. Дефект биметаллической пластины защитного реле: "))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Дефект катушки (или иного датчика силы тока) пускового реле"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Обрыв пусковой обмотки электродвигателя"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 2:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5. Дефект биметаллической пластины защитного реле: "))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Дефект катушки (или иного датчика силы тока) пускового реле"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Обрыв пусковой обмотки электродвигателя"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 3:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5. Дефект биметаллической пластины защитного реле: "))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Дефект катушки (или иного датчика силы тока) пускового реле"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Обрыв пусковой обмотки электродвигателя"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 4:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5. Дефект биметаллической пластины защитного реле: "))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Дефект катушки (или иного датчика силы тока) пускового реле"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Обрыв пусковой обмотки электродвигателя"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- }
- }
- void zapoln1()
- {
- switch (z2)
- {
- case 1:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height +200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height +200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width+6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width-30) / 3, (Screen.height)/27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4)&&(visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.Нарушение регулировки компрессора."))
- {
- if ((truOtvets2[k] == 5)&&(pr3==1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5aaaaaaaaaaaaaaaa."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "bbbbbbbbbbbbbbbbbb"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 150) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 2:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 150) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.Нарушение регулировки компрессора."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5aaaaaaaaaaaaaaaa."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "bbbbbbbbbbbbbbbbbb"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 3:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height -225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.Нарушение регулировки компрессора."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5aaaaaaaaaaaaaaaa."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "bbbbbbbbbbbbbbbbbb"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 150) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- case 4:
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), "Правильные ответы:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), "Кол-во ошибок:");
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- if (visibleButton1)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 300) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "1.Отключить холодильник от сети."))
- {
- if (truOtvets2[k] == 1)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton1 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- }
- }
- }
- if (visibleButton2)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 150) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "2.Снять корпус холодильника. "))
- {
- if (truOtvets2[k] == 2)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton2 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton3)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 750) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "3.Осмотреть на дефекты. "))
- {
- if (truOtvets2[k] == 3)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton3 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton4)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 600) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "4.Заменить детали."))
- {
- if (truOtvets2[k] == 4)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton4 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if ((!visibleButton4) && (visibleButton))
- {
- GUI.Label(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 850) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "Выберите дефект");
- }
- if (visibleButtonch)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 375) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5.Нарушение регулировки компрессора."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 1))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 675) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "5aaaaaaaaaaaaaaaa."))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 2))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 525) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "bbbbbbbbbbbbbbbbbb"))
- {
- if ((truOtvets2[k] == 5) && (pr3 == 3))
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButtonch = false;
- visibleButton = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton6)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 450) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "6.Установка и запуск холодильника."))
- {
- if (truOtvets2[k] == 6)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton6 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- if (visibleButton7)
- {
- if (GUI.Button(new Rect((Screen.width + 6) - (Screen.width) / 3, (Screen.height - 225) / 2 + 130, (Screen.width - 30) / 3, (Screen.height) / 27), "7.Сборка в обратном порядке."))
- {
- if (truOtvets2[k] == 7)
- {
- k++;
- Debug.Log("КРАСАВА, МОЛОДЕЦ!");
- visibleButton7 = false;
- tru++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 130, 100, 20), tru.ToString());
- }
- else
- {
- errorShow = true;
- Debug.Log("НЕ КРАСАВА И НЕ МОЛОДЕЦ!");
- fal++;
- GUI.Label(new Rect((Screen.width + 110) - (Screen.width) / 3, (Screen.height + 200) / 2 + 100, 100, 20), fal.ToString());
- }
- }
- }
- break;
- }
- }
- }
- void Update()
- {
- if (errorShow)
- if (mSec <= 0)
- {
- errorShow = false;
- mSec = 1;
- }
- else
- mSec -= Time.deltaTime * 2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement