示例#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);
    }
示例#2
0
 // Use this for initialization
 public void Start()
 {
     instance = this;
 }