/// <summary> /// Method called on application start /// </summary> private void Awake() { ARCanvas._actualARCanvas = this; this._placementController = PlacementControllerGO.GetComponent <PlacementController>(); this._dialogWindow = this.GetComponentInChildren <DialogWindow>(true); this._circleController = this.GetComponentInChildren <CircleController>(true); this._precisePoistioningComponent = this.GetComponentInChildren <PrecisePositioningComponent>(true); var waitingForSurfaceLabelGO = this.transform.Find("WaitingForSurfaceLabel").gameObject; var backButtonGO = this.transform.Find("BackButton").gameObject; var pickUpButtonGO = this.transform.Find("PickUpModelButton").gameObject; var showDoorsButtonGO = this.transform.Find("ShowDoorsButton").gameObject; var hideDoorButtonGO = this.transform.Find("HideDoorsButton").gameObject; var showCoversButtonGO = this.transform.Find("ShowCoversButton").gameObject; var hideCoversButtonGO = this.transform.Find("HideCoversButton").gameObject; var showPrecisePositioningButtonGO = this.transform.Find("ShowPreciseButton").gameObject; var hidePrecisePositioningButtonGO = this.transform.Find("HidePreciseButton").gameObject; var loadingPageGO = this.transform.Find("LoadingPage").gameObject; this._scaleLabelGO = this.transform.Find("ScaleLabel").gameObject; var scaleLabelTextGO = _scaleLabelGO.transform.Find("Label").gameObject; this._waitingForSurfaceLabel = waitingForSurfaceLabelGO.GetComponent <TextMeshProUGUI>(); this._goBackButton = backButtonGO.GetComponent <ClickableImage>(); this._pickUpModelButton = pickUpButtonGO.GetComponent <ClickableImage>(); this._showDoorsButton = showDoorsButtonGO.GetComponent <ClickableImage>(); this._hideDoorsButton = hideDoorButtonGO.GetComponent <ClickableImage>(); this._showCoversButton = showCoversButtonGO.GetComponent <ClickableImage>(); this._hideCoversButton = hideCoversButtonGO.GetComponent <ClickableImage>(); this._showPrecisePositioningButton = showPrecisePositioningButtonGO.GetComponent <ClickableImage>(); this._hidePrecisePositioningButton = hidePrecisePositioningButtonGO.GetComponent <ClickableImage>(); this._loadingPage = loadingPageGO.GetComponent <LoadingPage>(); this._waitingForSurfaceLabel.text = Translator.GetTranslation("WaitingForSurfaceLabel.ContentText"); this._scaleLabelText = scaleLabelTextGO.GetComponent <TextMeshProUGUI>(); this._scaleLabelText.text = _getScaleLabelTranslationText(); //Disable screen dimming Screen.sleepTimeout = SleepTimeout.NeverSleep; }
public void TryOnButton() { CanvasMain.SetActive(true); ARCanvas.SetActive(false); }