Пример #1
0
    /// <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();
            }
        }
    }
Пример #2
0
    private void Awake()
    {
        instance = this;

#if (UNITY_2018_3_OR_NEWER && UNITY_ANDROID)
        permissionList.Add(Permission.Microphone);
        permissionList.Add(Permission.Camera);
#endif
    }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }
Пример #5
0
        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();
        }