📜  unity c# 延迟函数 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:54.060000             🧑  作者: Mango

代码示例3
void start()
{
  Invoke("DoSomething", 2);//this will happen after 2 seconds
}
void DoSomething()
{
    Debug.Log("2 seconds has passed!");
}