更新进度条
来源:互联网 发布:若宇网络 编辑:程序博客网 时间:2024/06/05 17:24
public void UpdateHealthBar ()
{
// Set the health bar's colour to proportion of the way between green and red based on the player's
healthBar.material.color = Color.Lerp(Color.green, Color.red, 1 - health * 0.01f);//health.heathBar是精度条
// Set the scale of the health bar to be proportional to the player's health.
healthBar.transform.localScale = new Vector3(healthScale.x * health * 0.01f, 1, 1);
{
// Set the health bar's colour to proportion of the way between green and red based on the player's
healthBar.material.color = Color.Lerp(Color.green, Color.red, 1 - health * 0.01f);//health.heathBar是精度条
// Set the scale of the health bar to be proportional to the player's health.
healthBar.transform.localScale = new Vector3(healthScale.x * health * 0.01f, 1, 1);
}
0 0
- 更新进度条
- Android更新下载进度条
- Android更新下载进度条
- Android更新下载进度条
- Handler更新进度条
- handler更新播放进度条
- Android更新进度条
- android 进度条更新
- javaFX 异步更新进度条
- 下载文件更新进度条
- Unity3D更新进度条
- 更新LisView里面的进度条----Progress进度条
- 多线程实现Android更新进度条
- 多线程实现Android更新进度条
- C#委托更新进度条 delegate
- ios线程练习更新进度条
- Handler传递数据更新进度条
- Android Handler模拟进度条更新
- POJ 1984 Navigation Nightmare 二维带权并查集
- 网络最大流
- Share SDK
- IO流对文件读取和写入
- .NET项目中文件后缀名
- 更新进度条
- HDU1709 The Balance 【母函数】
- HDU3932 再谈佩尔方程
- Codeforces Round #257 (Div. 2)
- (七)u-boot2013.01.01 for s5pv210:《u-boot启动流程》
- hdoj 2024 C语言合法标识符
- Spring 入门总结
- 滋肮腋懊蹦叶嘎铱棕瞥阂魄呐段感
- 八滓临罩口拓研庞嚼旁胰张畔谇此