Unity 中的延时方法

作者: pirateH | 来源:发表于2017-07-06 12:30 被阅读39次

    1.Invoke

    https://docs.unity3d.com/ScriptReference/MonoBehaviour.Invoke.html
    使用
    public void Invoke(string methodName, float time);
    说明
    Invokes the method methodName in time seconds.

    还有一个 InvokeRepeating
    使用
    InvokeRepeating(string methodName, float time, float repeatRate);
    说明
    Invokes the method methodName in time seconds, then repeatedly every repeatRate seconds.
    https://docs.unity3d.com/ScriptReference/MonoBehaviour.InvokeRepeating.html

    相关文章

      网友评论

      • bdff6c85c03e:你好,可以加你微信吗?可以教我怎么制作表情包?

      本文标题:Unity 中的延时方法

      本文链接:https://www.haomeiwen.com/subject/zqjhhxtx.html