Beispiel #1
0
    //	// resets the last valid right hand event
    //	public void ResetRightHandEvent()
    //	{
    //		lastRightHandEvent = InteractionWrapper.InteractionHandEventType.None;
    //	}

    //----------------------------------- end of public functions --------------------------------------//

    void Awake()
    {
        // ensure the needed dlls are in place
        if (WrapperTools.EnsureKinectWrapperPresence())
        {
            // reload the same level
            WrapperTools.RestartLevel(gameObject, "IM");
        }
    }
    //----------------------------------- end of public functions --------------------------------------//

    void Awake()
    {
        // ensure the needed dlls are in place
        if (WrapperTools.EnsureKinectWrapperPresence())
        {
            // reload the same level
            WrapperTools.RestartLevel(gameObject, "SM");
        }

        // copy the grammar file from the resources, if not found
        if ((grammarFileName != "") && !File.Exists(grammarFileName))
        {
            TextAsset textRes = Resources.Load(grammarFileName, typeof(TextAsset)) as TextAsset;

            if (textRes != null)
            {
                string sResText = textRes.text;
                File.WriteAllText(grammarFileName, sResText);
            }
        }
    }