Unity延时方法Invoke和InvoleRepeating

    xiaoxiao2025-08-09  9

    MonoBehaviour里面有两个内置方法

    Invoke(methodName:string,time:float):void

    methodName:方法名

    time:多少秒后开始执行

    InvokeRepeating(methodName:string,time:float,repeatRate:float):void

    methodName:方法名

    time:多少秒后执行

    repeatRate:重复执行间隔

    转载请注明原文地址: https://ju.6miu.com/read-1301552.html
    最新回复(0)