You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
707 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LzFramework.UI;
using UnityEngine.UI;
namespace DisComputer
{
public class Enter : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
TTUIPage.ShowPage<TipView>();
TTUIPage.ShowPage<VonNeumannView>();
GameObject canvasGo = GameObject.Find("UIRoot").gameObject;
if (canvasGo != null)
{
Canvas canvas = canvasGo.GetComponent<Canvas>();
canvas.GetComponent<CanvasScaler>().referenceResolution = new Vector2(1920,1080);
}
}
}
}