Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     if (!ReferenceEquals(app, null))
     {
         app = new HelloUnityVideo();
         app.loadEngine();
     }
     app.join("BaiJiaLe");
 }
Beispiel #2
0
    private void onJoinButtonClicked()
    {
        // get parameters (channel name, channel profile, etc.)
        //GameObject go = GameObject.Find ("ChannelName");
        //InputField field = go.GetComponent<InputField>();


        // create app if nonexistent
        go.SetActive(true);
        if (ReferenceEquals(app, null))
        {
            app = new HelloUnityVideo();   // create app
            app.loadEngine();              // load engine
        }

        // join channel and jump to next scene
        app.join(LoginInfo.Instance().mylogindata.nearURL);
        str_ = LoginInfo.Instance().mylogindata.nearURL;
        //SceneManager.sceneLoaded += OnLevelFinishedLoading; // configure GameObject after scene is loaded
        //SceneManager.LoadScene ("SceneHelloVideo", LoadSceneMode.Single);
    }
Beispiel #3
0
    private void onJoinButtonClicked()
    {
        // get parameters (channel name, channel profile, etc.)
        GameObject go    = GameObject.Find("ChannelName");
        InputField field = go.GetComponent <InputField>();

        // create app if nonexistent
        if (ReferenceEquals(app, null))
        {
            app = new HelloUnityVideo();   // create app
            app.loadEngine();              // load engine
        }

        // join channel and jump to next scene
        app.join(field.text);
        SceneManager.sceneLoaded += OnLevelFinishedLoading;         // configure GameObject after scene is loaded
        SceneManager.LoadScene("SceneHelloVideo", LoadSceneMode.Single);
    }