/// <summary> /// React to a button click event. Used in the UI Button action definition. /// </summary> /// <param name="button"></param> public void onButtonClicked(Button button) { // which GameObject? GameObject go = GameObject.Find("GameController"); if (go != null) { TestHome gameController = go.GetComponent <TestHome>(); if (gameController == null) { Debug.LogError("Missing game controller..."); return; } if (button.name == "JoinButton") { gameController.onJoinButtonClicked(); } else if (button.name == "JoinButton2") { gameController.onJoinButton2Clicked(); } else if (button.name == "LeaveButton") { gameController.onLeaveButtonClicked(); } } }
private void Awake() { instance = this; #if (UNITY_2018_3_OR_NEWER && UNITY_ANDROID) permissionList.Add(Permission.Microphone); permissionList.Add(Permission.Camera); #endif }
public void SetupEnvironment() { // register the channel m_channel = new IiopClientChannel(); ChannelServices.RegisterChannel(m_channel, false); // access COS nameing service RmiIiopInit init = new RmiIiopInit("localhost", 7001); m_nameService = init.GetNameService(); NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("test", "") }; // get the reference to the test-home TestHome testhome = (TestHome)m_nameService.resolve(name); m_test = testhome.create(); }
public void SetupEnvironment() { SetupSslChannel(); // access COS nameing service string nameserviceLoc = "corbaloc:iiop-ssl:localhost:3529/JBoss/Naming/root"; m_nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc); NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("test", "") }; // get the reference to the test-home TestHome testhome = (TestHome)m_nameService.resolve(name); m_test = testhome.create(); }
public void SetupEnvironment() { // register the channel m_channel = new IiopClientChannel(); ChannelServices.RegisterChannel(m_channel, false); // access COS nameing service string nameserviceLoc = "corbaloc::localhost:3528/JBoss/Naming/root"; m_nameService = (NamingContext)RemotingServices.Connect(typeof(NamingContext), nameserviceLoc); NameComponent[] name = new NameComponent[] { new NameComponent("IntegrationTest", ""), new NameComponent("test", "") }; // get the reference to the test-home TestHome testhome = (TestHome)m_nameService.resolve(name); m_test = testhome.create(); }