Beispiel #1
0
    void OnEnable()
    {
        if (Debug.isDebugBuild)
            UnityClient.showConsole();

        try
        {
            m_video = new Video(videoConfigFile);

            if(m_video!=null)
            {
                if(!m_video.start())
                {
                    m_video.Dispose();
                    m_video=null;
                }
            }

            m_tracking = new Tracking(trackingConfigFile);
            m_tracking.start();
        }
        catch(Exception ex)
        {
            Debug.LogError("Error Manager.OnEnable - "+ex.Message);
        }
    }