Ejemplo n.º 1
0
    // KinectManager's Internal Methods

    void Awake()
    {
        try
        {
            if (KinectWrapper.EnsureKinectWrapperPresence())
            {
                // reload the same level
                Application.LoadLevel(Application.loadedLevel);
            }
        }
        catch (Exception ex)
        {
            Debug.LogError(ex.ToString());

            if (calibrationText != null)
            {
                calibrationText.guiText.text = ex.Message;
            }
        }
    }