37 lines
887 B
C#
37 lines
887 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
using HarmonyLib;
|
|
|
|
/*
|
|
|
|
namespace ScarletMansion.GamePatch {
|
|
public class MenuManagerPatch {
|
|
|
|
[HarmonyPatch(typeof(MenuManager), "Awake")]
|
|
[HarmonyPostfix]
|
|
public static void AwakePatch(ref MenuManager __instance){
|
|
try {
|
|
// this is a terrible way to do it
|
|
// but it does let me know
|
|
var parent = __instance.transform.parent;
|
|
var container = parent.Find("MenuContainer");
|
|
var mainButtons = container.Find("MainButtons");
|
|
var hostButton = mainButtons.Find("HostButton").gameObject;
|
|
|
|
//var target = GameObject.Instantiate(Assets.networkObjectList.mainMenuPrefab, container);
|
|
//target.transform.localScale = Vector3.one;
|
|
}
|
|
|
|
catch {
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
*/
|