Exemplo n.º 1
0
    // Defer the configuration creation until Awake so the web Client ID
    // Can be set via the property inspector in the Editor.
    void Awake()
    {
        sceneManager = VRSceneManager.Instance;

        listenerIdx = BackendService.Instance.RegisterListener(this);
        signInButton.GetComponent <Button>().onClick.AddListener(OnSignIn);
        startGameButton.GetComponent <Button>().onClick.AddListener(OnStartGame);
    }
Exemplo n.º 2
0
 // Use this for initialization
 public void Start()
 {
     instance = this;
 }