当我们游戏经常需要暂停的时候,又不想动画受到影响
方案一:
使用SetUpdate方法
SetUpdate方法可以让目标忽略timeScale
示例脚本:
self.__loginDoTween = CS_DOTween.Sequence()
self.__loginDoTween:SetUpdate(true)
方案二:直接调整animator的UpdateMode属性,如图
当我们游戏经常需要暂停的时候,又不想动画受到影响
方案一:
使用SetUpdate方法
SetUpdate方法可以让目标忽略timeScale
示例脚本:
self.__loginDoTween = CS_DOTween.Sequence()
self.__loginDoTween:SetUpdate(true)
方案二:直接调整animator的UpdateMode属性,如图