Ejemplo n.º 1
0
    void Start()
    {
        GameObject pBoard   = GameObject.FindGameObjectsWithTag("pBoard")[0];
        ReadFile   readFile = pBoard.GetComponent(typeof(ReadFile)) as ReadFile;

        this.mSocket = new ClientSocket();
        mSocket.ConnectServer(readFile.GetHostServerIdentifier(), readFile.GetHostServerPort());
        InvokeRepeating("SendHeartbeat", 0, Configuration.Config.HEARTBEAT_FREQUENCY);
    }