33 string path =
string.Concat(
CorePath.
coreWidget + base.config.id +
"/",
"default.png");
34 string obj = Lang.setting.dir +
"Widget/" + base.config.id +
"/";
35 string path2 = obj +
"default.txt";
36 string path3 = obj +
"siege.txt";
37 string path4 = obj +
"shutup.txt";
38 if (File.Exists(path2))
42 if (File.Exists(path3))
46 if (File.Exists(path4))
50 if (File.Exists(path))
52 image.texture = IO.LoadPNG(path);
55 InvokeRepeating(
"_Update", 1f, 1f);
63 base.transform.position =
new Vector3(
EMono.
rnd(Screen.width),
EMono.
rnd(Screen.height), 0f);
85 string str = ((
EMono.
rnd(2) == 0) ?
"" : array.RandomItem());
98 image.transform.localScale =
new Vector3(
flip ? 1 : (-1), 1f, 1f);
101 public void Say(
string[] lines)
103 Say(lines.RandomItem());
106 public void Say(
string str)
108 Transform parent =
text.transform.parent;
111 parent.SetActive(enable:
false);
115 parent.SetActive(enable:
true);
131 base.config.annoyPlayer =
isShut;