📜  unity 自定义更新 - C# 代码示例

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

代码示例1
float StartingRate = 0.5f;
float UpdateRate = 0.3f;

void Start(){
    InvokeRepeating("CustomUpdate",StartRate, UpdateRate);
    //This will start in 0.5s and start repeating in 0.3f 
}
void CustomUpdate(){
    //Your code here
}