AxibugEmuOnline/AxibugEmuOnline.Client/Assets/Script/AppMain/Initer.cs

37 lines
812 B
C#
Raw Normal View History

using AxibugEmuOnline.Client.ClientCore;
2024-12-11 21:21:27 +08:00
using UnityEngine;
namespace AxibugEmuOnline.Client
{
public class Initer : MonoBehaviour
{
public CanvasGroup FilterPreview => m_refs.FilterPreview;
public CanvasGroup XMBBg => m_refs.XMBBg;
2024-12-11 21:21:27 +08:00
public static string dev_UUID;
[SerializeField]
GameObject IMPORTENT;
GlobalRef m_refs;
2024-12-11 21:29:19 +08:00
#if UNITY_EDITOR
public bool bTest = false;
public string mTestSrvIP = "192.168.0.47";
#endif
2024-12-11 21:21:27 +08:00
private void Awake()
{
m_refs = Instantiate(IMPORTENT, transform).GetComponent<GlobalRef>();
2024-12-11 21:29:19 +08:00
#if UNITY_EDITOR
App.Init(this, bTest, mTestSrvIP);
#else
2024-12-11 21:21:27 +08:00
App.Init(this);
2024-12-11 21:29:19 +08:00
#endif
2024-12-11 21:21:27 +08:00
dev_UUID = SystemInfo.deviceUniqueIdentifier;
2024-12-11 21:21:27 +08:00
}
}
}