Modify and apply COOL animations in Main Menu (#96)

* Modify and apply COOL animations in Main Menu

Credits for code: TONX and MoreGamemodes

* Remove EHR logo and bring back Among Us text

@HyperAtill request on DIscord

* bro, credits are fixed 💀 💀

* add Website, Discord, and Github Button (from TOHE)

* bro 💀

* forgot to add in en-us

* this should fix it
This commit is contained in:
PHGaming121 authored and GitHub committed 2024-06-09 15:04:20 +02:00
1 parent b29e976eb2
commit b51aa966bb
9 files changed
+378 -223

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
using HarmonyLib;
using UnityEngine;
namespace EHR;
public static class ObjectHelper
{
/// <summary>
/// オブジェクトの<see cref="TextTranslatorTMP"/>コンポーネントを破棄します
/// </summary>
public static void DestroyTranslator(this GameObject obj)
{
if (obj == null) return;
obj.ForEachChild((Il2CppSystem.Action<GameObject>)DestroyTranslator);
TextTranslatorTMP[] translator = obj.GetComponentsInChildren<TextTranslatorTMP>(true);
translator?.Do(Object.Destroy);
}
/// <summary>
/// オブジェクトの<see cref="TextTranslatorTMP"/>コンポーネントを破棄します
/// </summary>
public static void DestroyTranslator(this MonoBehaviour obj) => obj?.gameObject?.DestroyTranslator();
}