改变FiexedUpdate时间:

MMORPG手游制作-任务11.Mono脚本

OnDestroy() :销毁时候执行=脚本销毁

OnEnable()   脚本可用时执行=脚本显示

OnDisable() 禁用执行=脚本隐藏

执行顺序=Awake=》OnEnable=》Start=》Update

数学函数:

Mathf.Clamp(a,20,100) :最小20 ,最大100

Mathf.Clamp01(a) 最小0 最大1


float t=0.2f  =>t是0到1之间

Mathf.Lerp(0,200f,t);    得到的值在0和200之间

Mathf.Round(t) =>四舍五入

Mathf.Abs(t) =>绝对值



相关文章:

  • 2022-01-23
  • 2022-12-23
  • 2021-12-05
  • 2021-06-23
  • 2022-12-23
  • 2021-07-21
  • 2022-02-06
  • 2022-12-23
猜你喜欢
  • 2021-04-30
  • 2021-05-27
  • 2021-11-20
  • 2021-11-23
  • 2021-07-21
  • 2021-06-12
  • 2021-10-26
相关资源
相似解决方案