Example #1
0
 void Awake()
 {
     recorder_ = gameObject.AddComponent <LeapRecorder>() as LeapRecorder;
     recorder_.Resets();
     Debug.Log(recorder_.speed);
     //leap_controller_ = gameObject.AddComponent<Controller>() as GameObject;
 }
Example #2
0
    public void UpdateGesture()
    {
        //Aが押されたら、playからのrecordingデータを読み込む。
        //選択した文字の認識情報データをLeapMotionのFrameの再生と追跡をするメソッドLeapRecorderでローディング.frames_に格納される。
        player.Load(gesture.recording);


        //そのファイルのフレームの数を表示。
        Debug.Log("読み込んでいるdataのFrameCount:" + player.GetFramesCount());
        //そのファイルをFrame型にデシリアライズされたリスト型が入る。frames

        var newFrames = player.GetFrames();

        //読み込んだデータの

        //newFrames.RemoveRange(player.GetFramesCount() - 200, 199);
        //plyaerに保存されていたフレームは削除。

        player.Resets();
        //Recordingデータを再び、frames_に戻す。
        foreach (var f in newFrames)
        {
            player.AddFrame(f);
        }
    }
Example #3
0
 /** Discards any frames recorded so far. */
 public void ResetRecording()
 {
     recorder_.Resets();
 }