当前位置:网站首页>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);
}
}
边栏推荐
猜你喜欢

Mysql--索引

微信小程序之点餐系统附源码

Installing mysql5.7 for Linux

Wuenda machine learning course - week 7

Internet of things security in the era of remote work

Reprint: linearlayout+fragment to achieve the lower navigation bar effect

详述用网络分析仪测量DC-DC和PDN

rpc的正确打开方式|读懂Go原生net/rpc包

Dynamically render data and carousels
![FPGA infrastructure [reference ug998]](/img/68/7eee191c52029dc140168bdb64b947.png)
FPGA infrastructure [reference ug998]
随机推荐
Detail measurement of DC-DC and PDN with network analyzer
NGUI,背包拖拽,以及随机克隆图片知识点
iPhone 15 被迫用上 Type-C 接口
Waiting event enq: Ko - some feasible processing methods for fast object checkpoint
Some understanding of inductive bias
ZigBee模块通信协议的树形拓扑组网结构
Browser class for getting started with puppeter
Windows 安装MySQL5.7 以上的版本(压缩包形式安装)
Browserfetcher class for getting started with puppeter
Data consistency
NGUI,聊天滚动框,UI TextList
MySQL基础篇常用约束总结上篇
C语言课程设计题目
What is the SOA or ASO of MOSFET?
Mysql-- index
With determination to forge ahead, JASMINER continues to deepen its brand strength
解读USB3.0测试项目
puppeteer入门之 Browser 类
Dynamically render data and carousels
修复UICollectionView 没有到达底部安全区的问题