private async void Start() { _xr = SimpleWebXR.GetInstance(); Host = PlayerPrefs.GetString("ip", "localhost"); _lowQuality = PlayerPrefs.GetInt("Low quality", 1) != 0; StartCoroutine(PollImage()); await InitWebSocket(); }
void Start() { _xr = SimpleWebXR.GetInstance(); if (!_xr) { return; } _input = IsLeft ? _xr.LeftInput : _xr.RightInput; _input.SelectStart.AddListener(() => StartCoroutine(DrawCoroutine())); _input.SelectEnd.AddListener(StopAllCoroutines); _renderer = GetComponent <MeshRenderer>(); }
void Start() { _session = SimpleWebXR.GetInstance(); if (!_session) { return; } _session.LeftInput.SelectStart.AddListener(() => SelectLeft.text = "LEFT"); _session.LeftInput.SelectEnd.AddListener(() => SelectLeft.text = "---"); _session.LeftInput.SqueezeStart.AddListener(() => SqueezeLeft.text = "LEFT"); _session.LeftInput.SqueezeEnd.AddListener(() => SqueezeLeft.text = "---"); _session.RightInput.SelectStart.AddListener(() => SelectRight.text = "RIGHT"); _session.RightInput.SelectEnd.AddListener(() => SelectRight.text = "---"); _session.RightInput.SqueezeStart.AddListener(() => SqueezeRight.text = "RIGHT"); _session.RightInput.SqueezeEnd.AddListener(() => SqueezeRight.text = "---"); }
void Start() { _session = SimpleWebXR.GetInstance(); }
void Start() { _session = SimpleWebXR.GetInstance(); _text = GetComponentInChildren <Text>(); }