private static void SendGo(GC_GameObject obj) { foreach (var child in obj.Childs) { PackageEventSystem.Send(child.GetGOInfo()); } foreach (var child in obj.Childs) { SendGo(child); } }
private void SendExistTex() { var dInfo = new DirectoryInfo(Path.Combine(Application.dataPath, "Resources")); if (!dInfo.Exists) { Debug.LogError("Doesn't exist: " + dInfo.FullName); } var files = dInfo.GetFiles("*.jpg"); var texsName = string.Join(",", files.Select(x => Path.GetFileNameWithoutExtension(x.Name)).ToArray()); var texInfo = new ExistTextureInfo(texsName); PackageEventSystem.Send(texInfo); }