Exemple #1
0
    public void start(GameObject root)
    {
        LabelComponent label = root.AddComponent <LabelComponent>();

        label.setTop(10);
        label.setText("Modding-API active");
    }
Exemple #2
0
    public void start(GameObject root)
    {
        var harmony = HarmonyInstance.Create("org.owls.modmanager");

        harmony.PatchAll(Assembly.GetExecutingAssembly());

        LabelComponent label = root.AddComponent <LabelComponent>();

        label.setTop(30);
        if (harmony == null)
        {
            return;
        }
        label.setText(
            "Harmony-Plugin loaded: " + (harmony != null) + "\n"
            + "Harmony-Id: " + (harmony.Id) + "\n"
            + "Harmony.hasPatches: " + harmony.HasAnyPatches(harmony.Id)
            );
    }