public void start(GameObject root) { LabelComponent label = root.AddComponent <LabelComponent>(); label.setTop(10); label.setText("Modding-API active"); }
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) ); }