📜  void 函数 - 任何代码示例

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

代码示例1
public void Yourvoidname()
{
    //Whatever you want to happen when your void is called
}


//somewhere else in your script, for example start()
void Start()
{
    Yourvoidname();
    //when the start function is called(first frame) your void will be called
}