void Awake() { /*DEBUG*/ if (CLEAN_EVERYTHING_ON_START) { PlayerPrefs.DeleteAll(); } #if UNITY_ANDROID && !UNITY_EDITOR // enable Status Bar on Android if (getSDKInt() >= 20) { ApplicationChrome.statusBarState = ApplicationChrome.States.VisibleOverContent; ApplicationChrome.navigationBarState = ApplicationChrome.States.Visible; ApplicationChrome.statusBarColor = 0xd83c18; //Screen.fullScreen = false; } else { ApplicationChrome.statusBarState = ApplicationChrome.States.Visible; ApplicationChrome.navigationBarState = ApplicationChrome.States.Visible; ApplicationChrome.statusBarColor = 0xd83c18; } #endif _savedSkybox = RenderSettings.skybox; //TouchScreenKeyboard.hideInput = true; /*#if UNITY_ANDROID * Screen.fullScreen = false; #endif*/ if (DEBUG) { var fps_displ = FindObjectOfType <FPSDisplay> (); if (fps_displ != null) { fps_displ.enabled = true; } } Application.targetFrameRate = 60; Debug.LogWarning("App start"); scaleFactorRefCanvas = GameObject.Find("ScaleFactorRefCanvas").GetComponent <Canvas>(); hudCanvas = GameObject.Find("HUDCanvas").GetComponent <Canvas>(); centerPanel = GameObject.Find("CenterPanel").GetComponent <Transform>(); alertsCanvas = GameObject.Find("AlertsCanvas").GetComponent <Canvas>(); cam = GetComponent <CameraScript> (); searchBox = GameObject.FindObjectOfType <SearchBoxScript> (); Debug.LogWarning("serachbox is " + (searchBox == null?"null":"not null")); floorSwitcher = GameObject.FindObjectOfType <FloorSwitchScript> (); bottomPanel = GameObject.FindObjectOfType <BottomPanelScript> (); pool = GameObject.FindObjectOfType <PoolSystem> (); centerPanelContainer = GameObject.Find("CenterPanelContainer").transform; if (centerPanelContainer == null) { Debug.LogError("cant find center panel container"); } openTimetableButton = GameObject.Find("OpenTimetableButton").GetComponent <RectTransform> (); openExamsButton = GameObject.Find("OpenExamsButton").GetComponent <RectTransform> (); examsHeader = GameObject.Find("ExamsHeader"); facilities = new FacilitiesManager(); timetableManager = new TimetableManger(); SetupTimeSpecialContent(); clearCenterPanelContainer(); }
private void Awake() { instance = this; SetUpManager(); }
public List <Facility> ObtenerFacilities() { FacilitiesManager facilitiesManager = new FacilitiesManager(); return(facilitiesManager.GetAllFacilities()); }