diff --git a/Heli_with_panels/Assets/Fusel/scripts/ChangeSystem.cs b/Heli_with_panels/Assets/Fusel/scripts/ChangeSystem.cs index a25223a..7a2ed54 100644 --- a/Heli_with_panels/Assets/Fusel/scripts/ChangeSystem.cs +++ b/Heli_with_panels/Assets/Fusel/scripts/ChangeSystem.cs @@ -1,4 +1,3 @@ -<<<<<<< HEAD using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -266,273 +265,4 @@ public class ChangeSystem : MonoBehaviour //}).catch ((message) => { // alert(message); //}); -======= -using System.Collections; -using System.Collections.Generic; -using UnityEngine; -using UnityEngine.SceneManagement; -using UnityEngine.EventSystems; -using UnityEngine.UI; - -public class ChangeSystem : MonoBehaviour -{ - public GameObject AllSystemsBtn; - public GameObject ButtonMainBack; - - public GameObject MasloBtn; - public GameObject MasloBtnBackOff; - - public GameObject OstanovBtn; - public GameObject OstanovBtnBackOff; - - public GameObject TormozBtn; - public GameObject TormozBtnBackOff; - - public GameObject DrenazhDvigBtn; - public GameObject DrenazhDvigBtnBackOff; - - public GameObject ToplBtn; - public GameObject ToplBtnBackOff; - - public GameObject GidroBtn; - public GameObject GidroBtnBackOff; - - public GameObject TransBtn; - public GameObject TransBtnBackOff; - - public GameObject PozharBtn; - public GameObject PozharBtnBackOff; - - public GameObject POSBtn; - public GameObject POSBtnBackOff; - - public GameObject UprDvigBtn; - public GameObject UprDvigBtnBackOff; - - public GameObject ZapuskDvigBtn; - public GameObject ZapuskDvigBtnBackOff; - - public GameObject TV117VBtn; - public GameObject TV117VBtnBackOff; - - public GameObject TA14Btn; - public GameObject TA14BtnBackOff; - - public GameObject UPRStabBtn; - public GameObject UPRStabBtnBackOff; - - public GameObject SKVBtn; - public GameObject SKVBtnBackOff; - - public GameObject PutevBtn; - public GameObject PutevBtnBackOff; - - public GameObject ProdolBtn; - public GameObject ProdolBtnBackOff; - - public GameObject OSHBtn; - public GameObject OSHBtnBackOff; - - public GameObject OhlAgrBtn; - public GameObject OhlAgrBtnBackOff; - - public GameObject KislorodBtn; - public GameObject KislorodBtnBackOff; - - public Camera MainCamera; - public Camera CamMasloSystem, CamOstanov, CamUpravDvig, CamPOS, CamTrans, CamFire, CamTopl, CamTormoz, - CamGidro, CamZapuskDvig, CamDrenazhDvig, CamTV117V, CamTA14, CamUPRStab, CamSKV, CamPutev, CamProdol, CamOSH, CamOhlAgr, CamKislorod; - - //string Maslo = "CamMasloSystem"; - - public void ChooseSys(string MySystem) - { - if (!MySystem.ToLower().StartsWith("system_")) return; - int N = 0; - if (!int.TryParse(MySystem.ToLower().Replace("system_", ""), out N)) return; - if (N == 1) //"AllSystems" - { - AllSystemsBtn.GetComponent