当前位置:网站首页>Ngui, select gender male and female
Ngui, select gender male and female
2022-06-11 10:27:00 【ying1228475251】
UIToggle toggle,toggle2;
bool flag=false;
void Start () {
toggle = transform.GetChild(0).GetComponent<UIToggle>();
toggle2 = transform.GetChild(1).GetComponent<UIToggle>();
toggle.onChange.Add(new EventDelegate(this, "Chang"));
toggle2.onChange.Add(new EventDelegate(this, "Chang2"));
}
void Chang() {
if (toggle.value==true)
{
toggle2.value=false;
UILabel sex = toggle.transform.GetChild(1).GetComponent<UILabel>();
print(sex.text);
}
}
void Chang2()
{
if (toggle2.value==true)
{
toggle.value = false;
UILabel sex = toggle2.transform.GetChild(0).GetComponent<UILabel>();
print(sex.text);
}
}
边栏推荐
- Xilinx pin constraint file xdc
- Address of my bookmark
- WordPress网站备份
- Pyramidtnt: TNT with characteristic pyramid structure
- What are the ABAP keywords and syntax that cannot be used in the ABAP cloud environment?
- ZigBee模块无线传输星形拓扑组网结构简介
- FPGA infrastructure [reference ug998]
- 为什么DDRx的电源设计时需要VTT电源
- General idea of interface tuning
- Bcgcontrolbar Library Professional Edition, fully documented MFC extension class
猜你喜欢

BCGControlBar库专业版,完整记录的MFC扩展类

MOSFET的SOA或者ASO是什么?

安装MySQL ,出现由于找不到 MSVCR120.dll,无法继续执行代码解决方法”

After four years of outsourcing, it was abandoned

Introduction to ZigBee module wireless transmission star topology networking structure

Pl/sql compilation check in kingbasees

Some code fragments of a universal and confession wall system developed by PHP

What is the SOA or ASO of MOSFET?

Bcgcontrolbar Library Professional Edition, fully documented MFC extension class

Function and function of wandfluh proportional valve
随机推荐
Some understanding of inductive bias
After four years of outsourcing, it was abandoned
Where is it safer to open an account for soda ash futures? How much money can you do?
電子設備輻射EMC整改案例
C#入門系列(十一) -- 多維數組
Picture rule page turning
[machine learning theory] true positive, true negative, false positive, false negative concept
[audio and video] Introduction to SEI
【torch】: 并行训练并且可以动态设置第一个gpu的batch size
[Bert]: Calculation of last ave state when training tasks with similar Bert semantics
Fix the problem that uicollectionview does not reach the bottom security zone
金仓数据库KingbaseES中的sys_checksums坏块检测功能
安全相关网站推荐
rpc的正确打开方式|读懂Go原生net/rpc包
Browser class for getting started with puppeter
Habitable planet
Finite cyclic group
ZigBee模块无线传输星形拓扑组网结构简介
General idea of interface tuning
Common techniques for handling dates