示例#1
0
        public void OnConnectButtonClick()
        {
            PhiClient client = PhiClient.instance;

            client.SetServerAddress(enteredAddress);
            client.TryConnect();
        }
示例#2
0
        public PhiInitializer()
        {
            string address = GetServerAddress();

            PhiClient client = new PhiClient(address);

            client.TryConnect();
        }
示例#3
0
        public PhiInitializer()
        {
            PhiClient client = new PhiClient();

            client.TryConnect();

            // We use this as an entry to the main thread of the game.
            // Since the whole network layer receives messages in a different thread
            // than the game thread, we use this to resynchronize the whole thing.
            GameObject obj = new GameObject("Phi helper objects");

            obj.AddComponent <PhiComponent>();
        }