Invoke和InvokeRepeating是MonoBehaviour中的两个内置延时方法
Invoke
Invoke(methodName:string, time:float): void;
methodName:方法名
time:多少秒之后执行
InvokeRepeating
InvokeRepeating(methodName: string, time: float, re
Invoke和InvokeRepeating是MonoBehaviour中的两个内置延时方法
Invoke
Invoke(methodName:string, time:float): void;
methodName:方法名
time:多少秒之后执行
InvokeRepeating
InvokeRepeating(methodName: string, time: float, re