1、判断某个时间点、或者某个bool是否为true然后执行某些方法或者调用某个方法。[csharp] view plain copy print?void Update() { if( b == true) { ........do something.... } }