private void Awake()
    {
        globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>();

        outerBgPropBlock = new MaterialPropertyBlock();
        innerBgPropBlock = new MaterialPropertyBlock();
    }
예제 #2
0
 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>();
 }
예제 #3
0
    private void Awake()
    {
        globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>();

        horizontalRigidbody = GetComponent <Rigidbody>();

        dimensionExpLorerLoaded = false;
    }
예제 #4
0
    private void Awake()
    {
        globals = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>();

        thisCellRend = GetComponent <Renderer>();
        thisCellMesh = GetComponent <MeshFilter>().mesh;

        cellRendPropBlock = new MaterialPropertyBlock();
    }
예제 #5
0
    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>();
 }
예제 #7
0
    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;
    }
예제 #8
0
    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;
    }
예제 #9
0
    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
    }
예제 #10
0
    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;
    }
예제 #11
0
    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;
    }
예제 #12
0
    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;
    }
예제 #13
0
 private void Awake()
 {
     globals   = Player.instance.gameObject.GetComponent <ViRMA_GlobalsAndActions>();
     childRend = GetComponent <Renderer>();
 }
예제 #14
0
    private void Awake()
    {
        globals = Player.instance.gameObject.GetComponent<ViRMA_GlobalsAndActions>();

        keys = GetComponentsInChildren<Button>();   
    }