25 lines
377 B
C#
25 lines
377 B
C#
using SRF;
|
|
using UnityEngine;
|
|
|
|
namespace SRDebugger
|
|
{
|
|
[AddComponentMenu("SRDebugger Init")]
|
|
public class SRDebuggerInit : SRMonoBehaviourEx
|
|
{
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
if (Settings.Instance.IsEnabled)
|
|
{
|
|
SRDebug.Init();
|
|
}
|
|
}
|
|
|
|
protected override void Start()
|
|
{
|
|
base.Start();
|
|
Object.Destroy(base.CachedGameObject);
|
|
}
|
|
}
|
|
}
|