|
void | SetText (string message, Vector3 position, Quaternion rotation) |
|
void | SetText (string message, Vector3 position, Quaternion rotation) |
|
|
void | SetText (Vector3 position, Quaternion rotation) |
|
◆ SetText() [1/2]
void Goo.Visuals.FloatingTexts.Usage.FloatingText.SetText |
( |
string |
message, |
|
|
Vector3 |
position, |
|
|
Quaternion |
rotation |
|
) |
| |
|
inline |
Implements Goo.Visuals.FloatingTexts.IFloatingText.
15 {
18 }
void SetText(string message, Vector3 position, Quaternion rotation)
Definition: FloatingText.cs:14
TMP_Text _text
Definition: FloatingText.cs:8
◆ SetText() [2/2]
void Goo.Visuals.FloatingTexts.Usage.FloatingText.SetText |
( |
Vector3 |
position, |
|
|
Quaternion |
rotation |
|
) |
| |
|
inlineprivate |
21 {
22 transform.position = position;
23 transform.rotation = rotation;
24 gameObject.SetActive(true);
25 }
◆ OnEnable()
virtual void Goo.Visuals.FloatingTexts.Usage.FloatingText.OnEnable |
( |
| ) |
|
|
inlineprotectedvirtual |
28 {
30 }
float timer
Definition: FloatingText.cs:12
◆ Update()
virtual void Goo.Visuals.FloatingTexts.Usage.FloatingText.Update |
( |
| ) |
|
|
inlineprotectedvirtual |
33 {
35 {
36 timer += Time.deltaTime;
37 transform.position += Vector3.up * Time.deltaTime;
38 }
39 else
40 {
41 gameObject.SetActive(false);
42 }
43 }
float _lifeTime
Definition: FloatingText.cs:10
◆ _text
TMP_Text Goo.Visuals.FloatingTexts.Usage.FloatingText._text |
|
private |
◆ _lifeTime
float Goo.Visuals.FloatingTexts.Usage.FloatingText._lifeTime = 1.5f |
|
private |
◆ timer
float Goo.Visuals.FloatingTexts.Usage.FloatingText.timer |
|
private |
The documentation for this class was generated from the following file: