this.babyEyeTimer +=deltaTime;
if(this.babyEyeTimer > this.babyEyeInterval)
{
this.babyEyeCount = (this.babyEyeCount + 1) % 2;
this.babyTailTimer %= this.babyEyeInterval;
if(this.babyEyeCount == 0)
{
this.babyEyeInterval = Math.random() * 1500 + 2000;
}
else
{
this.babyEyeInterval = 200;
}
}
this.babyTailTimer %= this.babyEyeInterval; 加粗的地方错了
我的也颤抖,什么地方错了,代码跟你贴出来的一样呢
发现错误了~