Tanoda
TransitionAfterDelay.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
9
using
System.Collections;
10
using
System.Collections.Generic;
11
using
UnityEngine
;
12
13
namespace
Leap.Unity.Recording
{
14
15
public
class
TransitionAfterDelay
:
TransitionBehaviour
{
16
17
public
float
delay
= 1;
18
19
private
float
_enterTime;
20
21
private
void
OnEnable() {
22
_enterTime = Time.time;
23
}
24
25
private
void
Update() {
26
if
((Time.time - _enterTime) >
delay
) {
27
Transition
();
28
}
29
}
30
}
31
}
Leap.Unity.Recording.TransitionAfterDelay
Definition:
TransitionAfterDelay.cs:15
Leap.Unity.Recording.TransitionAfterDelay.delay
float delay
Definition:
TransitionAfterDelay.cs:17
Leap.Unity.Recording.TransitionBehaviour
Definition:
TransitionBehaviour.cs:15
Leap.Unity.Recording.TransitionBehaviour.Transition
void Transition()
Definition:
TransitionBehaviour.cs:22
Leap.Unity.Recording
Definition:
HierarchyPostProcessEditor.cs:15
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Plugins
LeapMotion
Experimental
HierarchyRecording
Scripts
StateMachine
Transitions
TransitionAfterDelay.cs
Generated by
1.9.3