mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-02 11:32:29 +08:00

* Errors are now logged properly. * Can now define classes, methods, etc - no longer has to be an expression body. * Added `StartCoroutine(IEnumerator routine)` helper method to easily run a Coroutine * Disabling suggestions now properly stops Explorer trying to update suggestion cache instead of just not showing them. In the rare cases that suggestions cause a crash, disabling them will now prevent those crashes. * Various other misc improvements behind the scenes
29 lines
613 B
C#
29 lines
613 B
C#
#if MONO
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
|
|
namespace UnityExplorer.Core.CSharp
|
|
{
|
|
public class DummyBehaviour : MonoBehaviour
|
|
{
|
|
public static DummyBehaviour Instance;
|
|
|
|
public static void Setup()
|
|
{
|
|
var obj = new GameObject("Explorer_DummyBehaviour");
|
|
DontDestroyOnLoad(obj);
|
|
obj.hideFlags |= HideFlags.HideAndDontSave;
|
|
|
|
obj.AddComponent<DummyBehaviour>();
|
|
}
|
|
|
|
internal void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
}
|
|
}
|
|
#endif |