28 lines
795 B
C#
28 lines
795 B
C#
using HarmonyLib;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace RacesOfValheim
|
|
{
|
|
[HarmonyPatch]
|
|
public static class TMPDebug
|
|
{
|
|
[HarmonyPatch(typeof(Hud), "Awake")]
|
|
[HarmonyPostfix]
|
|
public static void Awake_Postfix(Hud __instance)
|
|
{
|
|
Transform food2 = __instance.transform.Find("hudroot/healthpanel/food2");
|
|
if (food2 != null)
|
|
{
|
|
Transform time = food2.Find("time");
|
|
if (time != null)
|
|
{
|
|
Component[] comps = time.GetComponents<Component>();
|
|
foreach(var c in comps) {
|
|
Jotunn.Logger.LogInfo("Time component: " + c.GetType().Name);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|