Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        centerpoint = GameObject.FindGameObjectWithTag("CenterPoint");
        rotator     = SteamVR_Actions.default_RotateSphere;

        GameObject go = GameObject.FindGameObjectWithTag("DataStructure");

        if (go.TryGetComponent <DataStructure>(out DataStructure attempt))
        {
            data = attempt;
            Debug.Log("Loaded datastructure successfully");
        }
        else
        {
            Debug.LogError("Failed to load the datastructure.");
        }
    }
Esempio n. 2
0
 void Start()
 {
     modSlider = SteamVR_Actions.default_ChangeSliderValue;
     SteamVR_Actions.default_MenuPress.AddOnStateDownListener(TriggerMenuDown, SteamVR_Input_Sources.Any);
     ResetMenus();
 }