Tanoda
FingerRestorer.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
5
public
class
FingerRestorer
: MonoBehaviour
6
{
7
private
bool
leftLastFrame, rightLastFrame;
8
public
GameObject
leftHud
,
rightHud
;
9
10
#if DANA
11
void
Update()
12
{
13
if
(!
leftHud
.activeSelf)
14
{
15
if
(leftLastFrame)
16
{
17
HandHintSystem
.
instance
.RestoreFingers(
true
);
18
}
19
}
20
else
21
{
22
if
(!leftLastFrame)
23
{
24
HandHintSystem
.
instance
.StopMovingFinger();
25
}
26
}
27
28
if
(!
rightHud
.activeSelf)
29
{
30
if
(rightLastFrame)
31
{
32
HandHintSystem
.
instance
.RestoreFingers(
false
);
33
}
34
}
35
else
36
{
37
if
(!rightLastFrame)
38
{
39
HandHintSystem
.
instance
.StopMovingFinger();
40
}
41
}
42
leftLastFrame =
leftHud
.activeSelf;
43
rightLastFrame =
rightHud
.activeSelf;
44
}
45
#endif
46
}
FingerRestorer
Definition:
FingerRestorer.cs:6
FingerRestorer.rightHud
GameObject rightHud
Definition:
FingerRestorer.cs:8
FingerRestorer.leftHud
GameObject leftHud
Definition:
FingerRestorer.cs:8
HandHintSystem
Definition:
HandHintSystem.cs:7
HandHintSystem.instance
static HandHintSystem instance
Definition:
HandHintSystem.cs:8
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
TestScripts
FingerRestorer.cs
Generated by
1.9.3