2026-05-18 23:31:04 +08:00
|
|
|
using System.Net;
|
2026-05-17 11:35:43 +08:00
|
|
|
using RenderStreaming;
|
|
|
|
|
using Stary.Evo;
|
|
|
|
|
using Stary.Evo.UIFarme;
|
|
|
|
|
using Unity.RenderStreaming;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Main : MonoBehaviour, IController
|
|
|
|
|
{
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
2026-05-18 23:31:04 +08:00
|
|
|
ServicePointManager.ServerCertificateValidationCallback =
|
|
|
|
|
(sender, certificate, chain, sslPolicyErrors) =>
|
|
|
|
|
{
|
|
|
|
|
return true; // 信任所有证书,仅开发环境使用
|
|
|
|
|
};
|
2026-05-17 11:35:43 +08:00
|
|
|
this.GetSystem<IPanelSystem>().PushQueue<StartPanel>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public IArchitecture GetArchitecture()
|
|
|
|
|
{
|
|
|
|
|
return MainArchitecture.Interface;
|
|
|
|
|
}
|
|
|
|
|
}
|