Files
webRtc/Assets/Script/Main.cs

25 lines
614 B
C#

using System.Net;
using RenderStreaming;
using Stary.Evo;
using Stary.Evo.UIFarme;
using Unity.RenderStreaming;
using UnityEngine;
public class Main : MonoBehaviour, IController
{
private void Start()
{
ServicePointManager.ServerCertificateValidationCallback =
(sender, certificate, chain, sslPolicyErrors) =>
{
return true; // 信任所有证书,仅开发环境使用
};
this.GetSystem<IPanelSystem>().PushQueue<StartPanel>();
}
public IArchitecture GetArchitecture()
{
return MainArchitecture.Interface;
}
}