Skip to content

v1.0.133

Latest
Compare
Choose a tag to compare
@liangxiegame liangxiegame released this 15 May 12:01
· 2 commits to master since this release

[CN]

  • ActionKit: 增加 IgnoreTimeScale API(秋濑 建议,已包含示例和文档)
  • Readme.md 补全作者
  • TabCustomCode 增加 misakiMeii 的声明

[EN]

  • ActionKit: Adding the IgnoreTimeScale API(suggested by Akise, examples and documentation included)
  • Readme.md complete the author
  • TabCustomCode adds misakiMeii declarations

Example:

using UnityEngine;

namespace QFramework.Example
{
    public class IgnoreTimeScaleExample : MonoBehaviour
    {
        private void Start()
        {
            Time.timeScale = 0.25f;
            ActionKit.Sequence()
                .Delay(3.0f)
                .Callback(() =>
                {
                    Debug.Log("Scaled Time:" + Time.time);
                    Debug.Log("Unscaled Time:" + Time.unscaledTime);
                })
                .Start(this)
                .IgnoreTimeScale();
        }
    }
}

Result 结果
// Scaled Time: 0.7585141
// Unscaled Time: 3.02394;

本次更新由 QFramework 教程年会员 赞助,
感谢各位支持
QFramework 教程年会员地址:(https://www.gamepixedu.com/goods/show/55)[https://www.gamepixedu.com/goods/show/55]]