private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); outerBgPropBlock = new MaterialPropertyBlock(); innerBgPropBlock = new MaterialPropertyBlock(); }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); scrollRect = GetComponent <ScrollRect>(); scrollContent = scrollRect.content.transform; rectangle = transform.GetComponent <RectTransform>().rect; canvas = GetComponentInParent <Canvas>(); }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); horizontalRigidbody = GetComponent <Rigidbody>(); dimensionExpLorerLoaded = false; }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); thisCellRend = GetComponent <Renderer>(); thisCellMesh = GetComponent <MeshFilter>().mesh; cellRendPropBlock = new MaterialPropertyBlock(); }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); axisPointRigidbody = gameObject.AddComponent <Rigidbody>(); axisPointRigidbody.isKinematic = true; axisPointRigidbody.useGravity = false; axisPointRend = GetComponent <MeshRenderer>(); axisPointRendPropBlock = new MaterialPropertyBlock(); }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); rigidBody = gameObject.AddComponent <Rigidbody>(); rigidBody.isKinematic = true; col = gameObject.AddComponent <BoxCollider>(); labelText = transform.GetChild(0).GetComponentInChildren <TextMeshProUGUI>(); directFilterOptions = GetComponentsInChildren <ViRMA_UiElement>(); optionCols = GetComponentsInChildren <BoxCollider>(); }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); gameObject.AddComponent <BoxCollider>(); Destroy(GetComponent <SphereCollider>()); axisRollUpRigidbody = gameObject.AddComponent <Rigidbody>(); axisRollUpRigidbody.isKinematic = true; axisRollUpRigidbody.useGravity = false; }
private void Awake() { // define ViRMA globals script globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); buildingQuery = new Query(); activeXAxisId = -1; activeXAxisType = null; activeYAxisId = -1; activeYAxisType = null; activeZAxisId = -1; activeZAxisType = null; }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); timelineRb = GetComponent <Rigidbody>(); timelineLoaded = false; activeTimelinePosition = Vector3.one * Mathf.Infinity; activeTImelineRotation = Quaternion.identity; timelineScale = 0.3f; // global scale of timeline childRelativeSpacing = 0.25f; // % width of the child to space by timelinePositionDistance = 0.6f; // how far away to place the timeline in front of user resultsRenderSize = 100; // max results to render at a time contextTimelineTimespan = 60; // number of minutes on each side of target for context timeline }
private void Awake() { // define ViRMA globals script globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); activeQuery = new Query(); // setup cells and axes wrapper cellsandAxesWrapper = new GameObject("CellsAndAxesWrapper"); // setup rigidbody gameObject.AddComponent <Rigidbody>(); rigidBody = GetComponent <Rigidbody>(); rigidBody.useGravity = false; rigidBody.drag = 0.1f; rigidBody.angularDrag = 0.5f; }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); dimExCollider = gameObject.AddComponent <BoxCollider>(); dimExRigidbody = gameObject.AddComponent <Rigidbody>(); dimExRigidbody.isKinematic = true; dimExRigidbody.useGravity = false; dimExRigidbody.drag = 0.5f; gameObject.layer = 9; dimensionExpLorerGroupLoaded = false; dimExBtnPrefab = Resources.Load("Prefabs/DimExBtn") as GameObject; }
private void Awake() { // define ViRMA globals script globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); menuSections = new List <GameObject>(); menuSections.Add(section_dimensionBrowser); menuSections.Add(section_timePicker); menuSections.Add(section_locationPicker); // ensure all UI sections are enabled foreach (GameObject menuSection in menuSections) { menuSection.SetActive(true); } SetupCustomButtons(); transform.localScale = Vector3.one * 0.75f; }
private void Awake() { globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>(); childRend = GetComponent <Renderer>(); }
private void Awake() { globals = Player.instance.gameObject.GetComponent<ViRMA_GlobalsAndActions>(); keys = GetComponentsInChildren<Button>(); }