mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-04 12:32:23 +08:00
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
|