Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
Popper.cs
Go to the documentation of this file.
1using System;
2using DG.Tweening;
3using UnityEngine;
4
5public class Popper : MonoBehaviour
6{
7 public static Vector3 scale = Vector3.one;
8
9 [NonSerialized]
10 public bool isDestryoed;
11
12 public DOTweenAnimation anime;
13
14 public SpriteRenderer sr;
15
16 public Vector3 posFix;
17
18 public Vector3 posRandom;
19
20 public bool useLocalPosition;
21
22 public Tween tweenDelay;
23
24 public TextMesh text;
25
26 public TextMesh text2;
27
28 public Popper SetText(string s, Color c = default(Color))
29 {
30 SetText(text, s);
31 base.transform.localScale = scale;
32 if (c != default(Color))
33 {
34 text.color = c;
35 text2.color = c;
36 }
37 return this;
38 }
39
40 public static void SetText(TextMesh mesh, string text)
41 {
42 TextMesh[] componentsInChildren = mesh.GetComponentsInChildren<TextMesh>();
43 foreach (TextMesh obj in componentsInChildren)
44 {
46 obj.text = text;
47 obj.font.material.renderQueue = 4999;
48 obj.GetComponent<MeshRenderer>().sharedMaterial = mesh.font.material;
49 }
50 mesh.font.material.renderQueue = 5000;
51 }
52}
Font font
Definition: FontSource.cs:9
Definition: Popper.cs:6
Popper SetText(string s, Color c=default(Color))
Definition: Popper.cs:28
static Vector3 scale
Definition: Popper.cs:7
DOTweenAnimation anime
Definition: Popper.cs:12
Vector3 posFix
Definition: Popper.cs:16
TextMesh text
Definition: Popper.cs:24
SpriteRenderer sr
Definition: Popper.cs:14
static void SetText(TextMesh mesh, string text)
Definition: Popper.cs:40
Tween tweenDelay
Definition: Popper.cs:22
TextMesh text2
Definition: Popper.cs:26
bool useLocalPosition
Definition: Popper.cs:20
bool isDestryoed
Definition: Popper.cs:10
Vector3 posRandom
Definition: Popper.cs:18
FontSet fontSet
Definition: SkinManager.cs:74
static SkinManager Instance
Definition: SkinManager.cs:78