Tanoda
PromoTimeDisplay.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
UnityEngine
;
4
using
UnityEngine
.
UI
;
5
6
public
class
PromoTimeDisplay
: MonoBehaviour
7
{
8
public
TextMesh
tm
;
9
public
Text
txt
;
10
public
Text
txt2
;
11
12
void
Update()
13
{
14
return
;
15
var finish = FindObjectOfType<FinishAction>();
16
if
(finish)
17
{
18
if
(finish.currTime.text ==
"00:00.00"
)
19
{
20
if
(
tm
)
21
tm
.text =
""
;
22
}
23
else
24
{
25
if
(
tm
)
26
tm
.text = finish.currTime.text;
27
}
28
29
if
(
txt
)
30
txt
.text = finish.currTime.text;
31
if
(
txt2
)
32
txt2
.text = finish.currTime.text;
33
}
34
else
35
{
36
if
(
tm
)
37
tm
.text =
""
;
38
if
(
txt
)
39
txt
.text =
"00:00.00"
;
40
}
41
}
42
}
PromoTimeDisplay
Definition:
PromoTimeDisplay.cs:7
PromoTimeDisplay.txt2
Text txt2
Definition:
PromoTimeDisplay.cs:10
PromoTimeDisplay.txt
Text txt
Definition:
PromoTimeDisplay.cs:9
PromoTimeDisplay.tm
TextMesh tm
Definition:
PromoTimeDisplay.cs:8
UnityEngine.UI
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
PromoTimeDisplay.cs
Generated by
1.9.3