当前位置:网站首页>NGUI,冷却效果
NGUI,冷却效果
2022-06-11 10:20:00 【ying1228475251】
bool flag=false;
void Start () {
cool= transform.GetChild(2).transform.GetChild(0).GetComponent<UISprite>();
}
void Update()
{
if (Input.GetKeyDown(KeyCode.A)&&flag==false)
{
flag = true;
cool.fillAmount =1;
}
if (flag)
{
cool.fillAmount -= Time.deltaTime*0.3f;
if (cool.fillAmount<=0)
{
flag = false;
cool.fillAmount = 0;
}
}
}
边栏推荐
- 电子设备辐射EMC整改案例
- [Objective-C] dynamically create controls
- 【torch】: 并行训练并且可以动态设置第一个gpu的batch size
- 【K-Means】K-Means学习实例
- Streaming computing knowledge
- What hydraulic oil is used for Denison hydraulic pump? What are the requirements
- 安装MySQL ,出现由于找不到 MSVCR120.dll,无法继续执行代码解决方法”
- Function and function of wandfluh proportional valve
- BCGControlBar库专业版,完整记录的MFC扩展类
- MOSFET的SOA或者ASO是什么?
猜你喜欢

Correct opening method of RPC | understand go native net/rpc package

Chemical composition of q355hr steel plate

With determination to forge ahead, JASMINER continues to deepen its brand strength

Mysql--索引

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

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

Circuit board made of real gold -- golden finger

What are the application fields of MAG gear pump? To sum up

No more! The entry byte beat for a week and ran decisively.

Mysql--事务
随机推荐
外包干了四年,废了...
WordPress网站备份
穆格测试控制器的作用和应用场合有哪些
安装MySQL ,出现由于找不到 MSVCR120.dll,无法继续执行代码解决方法”
Servlet 的初次部署
手写代码call,apply,bind
[high concurrency] the interviewer of ant financial asked me about thread pool!!
转载:LinearLayout+Fragment实现下导航栏效果
Cisp-pte XSS Foundation
Cas de rectification du CEM rayonné par des équipements électroniques
Detail measurement of DC-DC and PDN with network analyzer
puppeteer入门之 BrowserFetcher 类
解读USB3.0测试项目
What are the functions and applications of Mogg test controller
宝塔面板备份与恢复数据
Wuenda machine learning course - week 7
[Clickhouse column] user initialization of new library role
Record yesterday's embarrassment
Introduction to steamvr
CISP-PTE XSS基础