Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    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);
    }
 private void Update()
 {
     PackageEventSystem.ApplyPackages();
 }