Documentation for the Unity C# Library
Loading...
Searching...
No Matches
RequestAuthPin.cs
Go to the documentation of this file.
1using UnityEngine;
2using UnityEngine.UI;
3using PixoVR.Apex;
4
6{
7 public Text AuthCodeText;
8
9 // Start is called before the first frame update
10 void Start()
11 {
12 ApexSystem.Instance.OnAuthorizationCodeReceived.AddListener(DisplayAuthCode);
13 }
14
15 // Update is called once per frame
16 void Update()
17 {
18
19 }
20
25
26 public void DisplayAuthCode(string authCode)
27 {
28 if(AuthCodeText)
29 {
30 AuthCodeText.text = authCode;
31 }
32 }
33}
static bool RequestAuthorizationCode()
void RequestAuthorizationPin()
void DisplayAuthCode(string authCode)