void Start () { m_mutex = new Mutex(); m_data_parser = new DataParser(); m_current_track = new TrackData(); m_connection = new NetworkConnection(this); if( !m_connection.Start(hostName,port,true) ) { Debug.LogError("could not access faceshift over the network on " + hostName + ":" + port + " using the TCP/IP protocol"); } // get the blendshapes from fs studio AskForBlendshapeNames (); Init(); }
void OnDestroy () { if (m_connection != null) m_connection.Stop(); m_connection = null; }