void Update()
{
if(timer>0)
{
timer-=Time.deltaTIme;
}if(timer<0)
timer=0;
if(timer==0)
{
timer=time/CtrlFly.j;
ZhiZhen();
}
}
这样就躲开了InvokeRepeating不能该参数的问题
void Update()
{
if(timer>0)
{
timer-=Time.deltaTIme;
}if(timer<0)
timer=0;
if(timer==0)
{
timer=time/CtrlFly.j;
ZhiZhen();
}
}
这样就躲开了InvokeRepeating不能该参数的问题