Initial Commit

This commit is contained in:
Lachlan Leone
2026-04-05 18:57:16 +10:00
commit c3a5153a56
691 changed files with 85219 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
using System.Collections.Generic;
using Easter2025.Views;
using HarmonyLib;
using Kitchen;
using KitchenLib.Utils;
using UnityEngine;
using UnityEngine.AI;
namespace Easter2025.Patches
{
[HarmonyPatch(typeof(LocalViewRouter), "GetPrefab")]
public class LocalViewRouter_Patch6
{
public static GameObject result;
public static GameObject container;
static bool Prefix(LocalViewRouter __instance, ViewType view_type, ref GameObject __result)
{
if (view_type != Mod.ROAMING_BLUE_BUNNY_VIEW) return true;
if (container == null)
{
container = new GameObject("temp");
container.SetActive(false);
}
if (result == null)
{
result = GameObject.Instantiate(Mod.Bundle.LoadAsset<GameObject>("RoamingBlueBunny").AssignMaterialsByNames(), container.transform);
RoamingBunnyView bunnyEasterEggView = result.AddComponent<RoamingBunnyView>();
bunnyEasterEggView.agent = result.GetComponent<NavMeshAgent>();
bunnyEasterEggView.animator = result.GetComponent<Animator>();
}
__result = result;
return false;
}
}
}