17 {
18 if (s.IsEmpty())
19 {
20 return;
21 }
22 string id;
23 float chance;
25 {
27 {
28 base.owner.PlaySound(id);
29 }
30 }
32 switch (s[0])
33 {
34 case '(':
36 break;
37 case '*':
38 p =
pop.
PopText(s,
null,
"PopTextOno",
default(
Color),
default(Vector3), duration);
39 break;
40 case '@':
41 {
42 int num = int.Parse(s[1].ToString());
44 if (num == 3)
45 {
47 }
48 break;
49 }
50 case '^':
51 p =
pop.
PopText(s.Substring(1),
null,
"PopTextBroadcast",
default(
Color),
default(Vector3), duration);
52 break;
53 case '|':
54 p =
pop.
PopText(s.Substring(1),
null,
"PopTextAbility",
default(
Color),
default(Vector3), duration);
55 break;
56 default:
58 break;
59 }
60 if (!p)
61 {
62 return;
63 }
65 {
66 if (p != null && p.gameObject != null)
67 {
68 p.RebuildLayout(recursive: true);
69 ContentSizeFitter[] componentsInChildren = p.GetComponentsInChildren<ContentSizeFitter>();
70 for (int i = 0; i < componentsInChildren.Length; i++)
71 {
72 componentsInChildren[i].enabled = false;
73 }
74 LayoutGroup[] componentsInChildren2 = p.GetComponentsInChildren<LayoutGroup>();
75 for (int i = 0; i < componentsInChildren2.Length; i++)
76 {
77 componentsInChildren2[i].enabled = false;
78 }
79 }
80 });
81 }
List< Action > actionsNextFrame
PopItemText PopText(string text, Sprite sprite=null, string id="PopText", Color c=default(Color), Vector3 destPos=default(Vector3), float duration=0f)
static float rndf(float max)
static void ShakeCam(string id="default", float magnitude=1f)
static bool ExtractSoundTag(ref string text, out string id, out float chance)