17 {
19 switch (s[0])
20 {
21 case '(':
23 break;
24 case '*':
25 p =
pop.
PopText(s,
null,
"PopTextOno",
default(
Color),
default(Vector3), duration);
26 break;
27 case '@':
28 {
29 int num = int.Parse(s[1].ToString());
31 break;
32 }
33 case '^':
34 p =
pop.
PopText(s.Substring(1),
null,
"PopTextBroadcast",
default(
Color),
default(Vector3), duration);
35 break;
36 default:
38 break;
39 }
40 if (!p)
41 {
42 return;
43 }
45 {
46 if (p != null && p.gameObject != null)
47 {
48 p.RebuildLayout(recursive: true);
49 ContentSizeFitter[] componentsInChildren = p.GetComponentsInChildren<ContentSizeFitter>();
50 for (int i = 0; i < componentsInChildren.Length; i++)
51 {
52 componentsInChildren[i].enabled = false;
53 }
54 LayoutGroup[] componentsInChildren2 = p.GetComponentsInChildren<LayoutGroup>();
55 for (int i = 0; i < componentsInChildren2.Length; i++)
56 {
57 componentsInChildren2[i].enabled = false;
58 }
59 }
60 });
61 }
List< Action > actionsNextFrame
PopItemText PopText(string text, Sprite sprite=null, string id="PopText", Color c=default(Color), Vector3 destPos=default(Vector3), float duration=0f)