private void Awake() { if (visualizationPrefab == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(visualizationPrefab)); } }
/// <summary> /// Checks the setup /// </summary> private void Awake() { if (dataDisplay == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(dataDisplay)); } }
/// <summary> /// Initializes the component, makes sure that it is set up correctly /// </summary> private void Awake() { if (createRoomButton == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(createRoomButton)); } if (pageUpButton == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(pageUpButton)); } if (pageDownButton == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(pageDownButton)); } if (createRoomSubMenu == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(createRoomSubMenu)); } // subscribe to the necessary events roomListView.ItemSelected += OnRoomSelected; createRoomSubMenu.WindowClosed += CreateRoomMenuClosed; LobbyManager.Instance.RoomListChanged += UpdateRoomList; LobbyManager.Instance.LobbyJoinStatusChanged += OnLobbyStatusChanged; Close(); }
private void Awake() { if (xPos == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(xPos)); } if (xNeg == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(xNeg)); } if (yPos == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(yPos)); } if (yNeg == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(yNeg)); } if (zPos == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(zPos)); } if (zNeg == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(zNeg)); } }
private void Awake() { if (chestBone == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(chestBone)); } if (neckBone == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(neckBone)); } if (headBone == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(headBone)); } if (eyeLeftBone == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(eyeLeftBone)); } if (eyeRightBone == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(eyeRightBone)); } eyeMiddleLocalPosition = Vector3.Lerp(eyeLeftBone.localPosition, eyeRightBone.localPosition, 0.5f); initialHeadRotation = headBone.localRotation; initialNeckRotation = neckBone.localRotation; }
/// <summary> /// Checks if the component is set up correctly /// </summary> private void Awake() { if (playerAvatarPrefab == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(playerAvatarPrefab)); } }
/// <summary> /// Checks the setup of the text label and calls UpdateVisuals() for the first time /// </summary> private void Awake() { if (!Application.isEditor) { // check the text label array if (textLabels.Length == 0) { SpecialDebugMessages.LogArrayInitializedWithSize0Warning(this, nameof(textLabels)); } for (int i = 0; i < textLabels.Length; i++) { if (textLabels[i] == null) { SpecialDebugMessages.LogArrayMissingReferenceError(this, nameof(textLabels), i); } } // check the other components if (background == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(background)); } } UpdateVisuals(); }
private void Awake() { if (progressBar == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(progressBar)); } }
private void Awake() { if (kanbanBoardController == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(kanbanBoardController)); } }
protected override void Awake() { base.Awake(); if (surfaceMaterial == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(surfaceMaterial)); } surfaceMeshFilter = contentParent.GetComponent <MeshFilter>(); if (surfaceMeshFilter == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(MeshFilter), contentParent.gameObject); } surfaceMeshRenderer = contentParent.GetComponent <MeshRenderer>(); if (surfaceMeshRenderer == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(MeshRenderer), contentParent.gameObject); } gridController = contentParent.GetComponent <GridController>(); if (gridController == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(GridController), contentParent.gameObject); } surfaceMeshRenderer.material = Instantiate(surfaceMaterial); }
/// <summary> /// Checks the setup of the component /// </summary> private void Awake() { if (cubeAnimator == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(cubeAnimator)); } if (cubePivot == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(cubePivot)); } if (onOffButton == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(onOffButton)); } if (labelsParent == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(labelsParent)); } if (animationHandler == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(animationHandler)); } if (appBarSpawner == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(appBarSpawner)); } }
protected virtual void Awake() { if (listViews.Length == 0) { SpecialDebugMessages.LogArrayInitializedWithSize0Warning(this, nameof(listViews)); } }
private void Awake() { if (diagram == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(diagram)); } if (xPosSlider == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(xPosSlider)); } if (xNegSlider == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(xNegSlider)); } if (yPosSlider == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(yPosSlider)); } if (yNegSlider == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(yNegSlider)); } if (zPosSlider == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(zPosSlider)); } if (zNegSlider == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(zNegSlider)); } }
/// <summary> /// Initializes the component by getting the reference to the visualization /// </summary> private void Awake() { visualization = GetComponent <Visualization>(); if (visualization == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(Visualization), gameObject); } }
private void Awake() { if (previewQuad == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(previewQuad)); } interactable = GetComponent <Interactable>(); }
private void Awake() { if (eyeTarget == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(eyeTarget)); } headBone = transform.parent; }
private void Awake() { if (heightChanger == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(heightChanger)); } targetRotation = transform.rotation; }
protected override void Awake() { base.Awake(); if (letterCaption == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(letterCaption)); } }
protected override void Awake() { base.Awake(); if (barPrefab == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(barPrefab)); } }
/// <summary> /// Checks the component's setup and initializes it /// </summary> private void Awake() { appBarPlacer = GetComponent <AppBarPlacer>(); if (appBarPlacer == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(AppBarPlacer), gameObject); } }
protected virtual void Awake() { if (progressBar == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(progressBar)); } progressBarVisuals = progressBar.GetComponent <IProgressBarVisuals>(); }
private void Initialize() { display = GetComponent <DataDisplay <DataType> >(); if (display == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(DataDisplay <DataType>), gameObject); } }
public override void Setup(NetworkRoomData content) { button = GetComponent <Interactable>(); if (button == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(Interactable), gameObject); } base.Setup(content); }
protected override void Awake() { if (targetBoundsControl == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(targetBoundsControl)); } base.Awake(); }
/// <summary> /// Called if the user starts a gesture on the object /// Creates a copy based on the given prefab and initializes the copy /// </summary> /// <param name="eventData">The event data of the gesture</param> public void OnPointerDown(MixedRealityPointerEventData eventData) { GameObject currentPointerTarget = eventData.Pointer.Result.CurrentPointerTarget; // only do this if we are out of selection mode, otherwise this is in conflict with the selection gesture if (!IssueSelectionManager.Instance.SelectionModeActive //clicking the edit or delete button shouldn't spawn a card && currentPointerTarget.GetComponent <EditButton>() == null && currentPointerTarget.GetComponent <DeleteButton>() == null) { // pass instantiation data to the copy so that other clients also know which issue is contained in the created copy object[] instantiationData; if (localDataDisplay.Content.Source == DataSource.REQUIREMENTS_BAZAAR) { instantiationData = new object[1]; } else if (localDataDisplay.Content.Source == DataSource.GITHUB) { instantiationData = new object[2]; instantiationData[1] = localDataDisplay.Content.ProjectId; } else { Debug.LogError("Unexpected source: " + localDataDisplay.Content.Source, gameObject); return; } instantiationData[0] = localDataDisplay.Content.Id; // same for ReqBaz and GitHub // create the copy, get the relevant components and set them up ResourceManager.Instance.SceneNetworkInstantiate(copyObject, transform.position, transform.rotation, (obj) => { copyInstance = obj; handlerOnCopy = copyInstance?.GetComponentInChildren <ObjectManipulator>(); IssueDataDisplay remoteDataDisplay = copyInstance?.GetComponent <IssueDataDisplay>(); if (handlerOnCopy == null || remoteDataDisplay == null) { if (handlerOnCopy == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(ObjectManipulator), copyInstance); } if (remoteDataDisplay == null) { SpecialDebugMessages.LogComponentNotFoundError(this, nameof(IssueDataDisplay), copyInstance); } PhotonNetwork.Destroy(copyInstance); } else { remoteDataDisplay.Setup(localDataDisplay.Content); handlerOnCopy.OnPointerDown(eventData); } }, instantiationData); } }
/// <summary> /// Checks if the component is set up correctly /// </summary> private void Awake() { if (nameDisplay == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(nameDisplay)); } if (avatarVisuals == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(avatarVisuals)); } }
/// <summary> /// Checks the setup /// </summary> private void Awake() { if (statusLabel == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(statusLabel)); } if (statusLabelBackground == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(statusLabelBackground)); } }
protected override void Awake() { base.Awake(); if (shiftIndicator == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(shiftIndicator)); return; } SetShift(false); }
/// <summary> /// Checks the setup of the component /// </summary> private void Awake() { if (sourceLabel == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(sourceLabel)); } if (backgroundRenderer == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(backgroundRenderer)); } }
/// <summary> /// Checks the setup of the component /// </summary> private void Awake() { if (profileImageRenderer == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(profileImageRenderer)); } if (userNameLabel == null) { SpecialDebugMessages.LogMissingReferenceError(this, nameof(userNameLabel)); } }