private void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } }
void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } if (playerPrefab == null) { componentMissing = true; } }
protected virtual void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } else { UIObject = gameObject; } }
void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } cellEnterer = GetComponent(typeof(ICellEnterer)) as ICellEnterer; if (cellEnterer == null) { componentMissing = true; } }
private void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } if (touristPrefab == null) { componentMissing = true; } InitTouristRegions(); InitTouristImages(); }
private void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { WorldMapGlobe = FindObjectOfType <WorldMapGlobe>(); if (WorldMapGlobe == null) { worldMapGlobeMissing = true; } GlobeParser = globeParserObject.GetComponent(typeof(IGlobeParser)) as IGlobeParser; if (GlobeParser == null) { componentMissing = true; } CellCursorInterface = cellCursorInterfaceObject.GetComponent(typeof(ICellCursorInterface)) as ICellCursorInterface; if (CellCursorInterface == null) { componentMissing = true; } GlobeEditor = globeEditorObject.GetComponent(typeof(IGlobeEditor)) as IGlobeEditor; if (GlobeEditor == null) { componentMissing = true; } MappablesManager = mappablesManagerObject.GetComponent(typeof(IMappablesManager)) as IMappablesManager; if (MappablesManager == null) { componentMissing = true; } } catch { componentMissing = true; } }
private void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { LandmarkManager = GetComponent(typeof(ILandmarkManager)) as ILandmarkManager; if (LandmarkManager == null) { componentMissing = true; } } catch { componentMissing = true; } }
void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { cellCursorInterface = GetComponent(typeof(ICellCursorInterface)) as ICellCursorInterface; } catch { componentMissing = true; } if (cellCursorInterface == null) { componentMissing = true; } }
private void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { PlayerManager = playerManagerObject.GetComponent(typeof(IPlayerManager)) as IPlayerManager; if (PlayerManager == null) { componentMissing = true; } TouristManager = touristManagerObject.GetComponent(typeof(ITouristManager)) as ITouristManager; if (TouristManager == null) { componentMissing = true; } CameraManager = cameraManagerObject.GetComponent(typeof(ICameraManager)) as ICameraManager; if (CameraManager == null) { componentMissing = true; } TurnsManager = turnsManagerObject.GetComponent(typeof(ITurnsManager)) as ITurnsManager; if (TurnsManager == null) { componentMissing = true; } ScoreManager = scoreManagerObject.GetComponent(typeof(IScoreManager)) as IScoreManager; if (ScoreManager == null) { componentMissing = true; } } catch { componentMissing = true; } }
public void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { ProvinceParser = GetComponent(typeof(IProvinceParser)) as IProvinceParser; CountryParser = GetComponent(typeof(ICountryParser)) as ICountryParser; LandmarkParser = GetComponent(typeof(ILandmarkParser)) as ILandmarkParser; } catch { componentMissing = true; } if (ProvinceParser == null || CountryParser == null || LandmarkParser == null) { componentMissing = true; } }
public void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { //Get Component Objects Transform textObject = gameObject.transform.GetChild(0); textObject = gameObject.transform.GetChild(0); errorMessage = textObject.gameObject.GetComponent(typeof(Text)) as Text; if (errorMessage == null) { componentMissing = true; } Transform scrollViewTextObject = gameObject.transform.GetChild(1).GetChild(0).GetChild(0); stackTraceInputField = scrollViewTextObject.gameObject.GetComponent(typeof(InputField)) as InputField; if (stackTraceInputField == null) { componentMissing = true; } Transform buttonObject = gameObject.transform.GetChild(2); errorButton = buttonObject.gameObject.GetComponent(typeof(Button)) as Button; if (errorButton == null) { componentMissing = true; } errorUIAwake = true; } catch { componentMissing = true; } }
private void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { CellClicker = GetComponent(typeof(ICellClicker)) as ICellClicker; CellEnterer = GetComponent(typeof(ICellEnterer)) as ICellEnterer; CellExiter = GetComponent(typeof(ICellExiter)) as ICellExiter; if (CellClicker == null || CellEnterer == null || CellExiter == null) { componentMissing = true; } } catch { componentMissing = true; } }
void Awake() { if (errorUIObject == null) { EmergencyExit("Error UI Game Object Not Found"); } errorUI = errorUIObject.GetComponent(typeof(IErrorUI)) as IErrorUI; if (errorUI == null) { EmergencyExit("Error UI Script Not Found"); } else { errorUIInitialized = true; } interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { EmergencyExit("Interface Factory not found"); } }
void Awake() { interfaceFactory = FindObjectOfType <InterfaceFactory>(); if (interfaceFactory == null) { gameObject.SetActive(false); } try { MouseOverInfoUI = mouseOverInfoUIObject.GetComponent(typeof(IMouseOverInfoUI)) as IMouseOverInfoUI; if (MouseOverInfoUI == null) { componentMissing = true; } NavigationUI = navigationUIObject.GetComponent(typeof(INavigationUI)) as INavigationUI; if (NavigationUI == null) { componentMissing = true; } DropOffUI = dropOffUIObject.GetComponent(typeof(IDropOffUI)) as IDropOffUI; if (DropOffUI == null) { componentMissing = true; } ScoreUI = scoreUIObject.GetComponent(typeof(IScoreUI)) as IScoreUI; if (ScoreUI == null) { componentMissing = true; } TurnsUI = turnsUIObject.GetComponent(typeof(ITurnsUI)) as ITurnsUI; if (TurnsUI == null) { componentMissing = true; } GameOverUI = gameOverUIObject.GetComponent(typeof(IGameOverUI)) as IGameOverUI; if (GameOverUI == null) { componentMissing = true; } GameMenuUI = gameMenuUIObject.GetComponent(typeof(IGameMenuUI)) as IGameMenuUI; if (GameMenuUI == null) { componentMissing = true; } InventoryPopUpUI = inventoryPopUpUIObject.GetComponent(typeof(IInventoryPopUpUI)) as IInventoryPopUpUI; if (InventoryPopUpUI == null) { componentMissing = true; } InventoryUI = inventoryUIObject.GetComponent(typeof(IInventoryUI)) as IInventoryUI; if (inventoryUIObject == null) { componentMissing = true; } } catch { componentMissing = true; } }