using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class test : MonoBehaviour { // Start is called before the first frame update void Start() { GameObject gameObject = popUpsCanvas.popUpsCanvasobj.addPopUp(popUpsCanvas.popUpsCanvasobj.VerNormalPopUpWindow);//²âÊÔ gameObject.GetComponent().setMode(ModeEnum.fixedSize); gameObject.GetComponent().setMinimumHeight(300); List light = new List(); light.Add(new BoxTypeItem { type = 0,content="²âÊÔ°´Å¥"}); light.Add(new BoxTypeItem { type = 1,content="²âÊÔ°´Å¥"}); List gameObjects = gameObject.GetComponent().newPopup(light,"²âÊÔ±êÌâ"); gameObjects[0].GetComponent().register_click(async (BoxTypeItem boxType, int type) => { Debug.Log(type); }); } }