2024-11-12 02:50:27 +08:00
|
|
|
|
using System;
|
2024-11-12 00:30:33 +08:00
|
|
|
|
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);//<2F><><EFBFBD><EFBFBD>
|
2024-11-12 02:50:27 +08:00
|
|
|
|
gameObject.GetComponent<NormalPopUpWindow>().setMode(ModeEnum.fixedSize);
|
|
|
|
|
gameObject.GetComponent<NormalPopUpWindow>().setMinimumHeight(300);
|
|
|
|
|
List <BoxTypeItem> light = new List<BoxTypeItem>();
|
|
|
|
|
light.Add(new BoxTypeItem { type = 0,content="<22><><EFBFBD><EFBFBD>ť"});
|
|
|
|
|
light.Add(new BoxTypeItem { type = 1,content="<22><><EFBFBD><EFBFBD>ť"});
|
|
|
|
|
|
|
|
|
|
List<GameObject> gameObjects = gameObject.GetComponent<NormalPopUpWindow>().newPopup(light,"<22><><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD>");
|
|
|
|
|
gameObjects[0].GetComponent<PopUpWindowitem>().register_click(async (BoxTypeItem boxType, int type) =>
|
|
|
|
|
{
|
|
|
|
|
Debug.Log(type);
|
|
|
|
|
});
|
2024-11-12 00:30:33 +08:00
|
|
|
|
}
|
|
|
|
|
}
|