mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-05 21:02:24 +08:00

* Project renamed to Explorer to reflect the new scope * Merged Mono and Il2Cpp builds * Merged BepInEx and MelonLoader builds * Some minor changes to accommodate for this * The release DLL and the config file now use "Explorer" in place of "CppExplorer" for file and folder names
33 lines
692 B
C#
33 lines
692 B
C#
using System;
|
|
using UnityEngine;
|
|
using Object = UnityEngine.Object;
|
|
|
|
namespace Explorer
|
|
{
|
|
public class ReplHelper : MonoBehaviour
|
|
{
|
|
#if CPP
|
|
public ReplHelper(IntPtr intPtr) : base(intPtr) { }
|
|
#endif
|
|
|
|
public T Find<T>() where T : Object
|
|
{
|
|
return FindObjectOfType<T>();
|
|
}
|
|
|
|
public T[] FindAll<T>() where T : Object
|
|
{
|
|
return FindObjectsOfType<T>();
|
|
}
|
|
|
|
//public object RunCoroutine(IEnumerator enumerator)
|
|
//{
|
|
// return MelonCoroutines.Start(enumerator);
|
|
//}
|
|
|
|
//public void EndCoroutine(Coroutine c)
|
|
//{
|
|
// StopCoroutine(c);
|
|
//}
|
|
}
|
|
} |