public void Update() { if (times < 30 && flag == 0) { if (interval <= 0) { interval = Random.Range(3, 5); times++; df.GenDisk(); } interval -= Time.deltaTime; } }
public void Update() { if (times < 30 && flag == 0) { if (interval <= 0) { interval = Random.Range(3, 5); times++; df.GenDisk(); } interval -= Time.deltaTime; } //这一句是添加的代码 actionManager.PlayDisk(); }