Esempio n. 1
0
    void Update()
    {
        // occasionally poll for new call invites
        if (m_roomManager.ShouldPollInviteList)
        {
            m_roomManager.UpdateActiveInvitesList();
        }

        // occasionally send my transform to my interlocutor
        if (m_p2pManager.ShouldSendHeadUpdate)
        {
            m_p2pManager.SendHeadTransform(m_camera.transform);
        }

        // estimate the remote avatar transforms from the most recent network update
        m_p2pManager.GetRemoteHeadTransform(m_remoteHead.transform);
    }