Tanoda
TransitionOnKeypress.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using System.Collections;
10using System.Collections.Generic;
11using UnityEngine;
12
13namespace Leap.Unity.Recording {
14
16
17 public KeyCode key;
18
19 private void Update() {
20 if (Input.GetKeyDown(key)) {
21 Transition();
22 }
23 }
24 }
25}