// Update is called once per frame void Update() { if (userGUI.mode == 0) { return; } if (userGUI.isKinematic == false) { actionManager = gameObject.GetComponent <PhysicActionManager>() as IActionManager; } else { actionManager = gameObject.GetComponent <CCActionManager>() as IActionManager; } GetHit(); gameOver(); if (round > max_round) { return; } timer -= Time.deltaTime; if (timer <= 0 && actionManager.RemainActionCount() == 0) { //if (timer <= 0) { //从工厂中得到10个飞碟,为其加上动作 for (int i = 0; i < 10; ++i) { disk = factory.GetDisk(round); actionManager.Fly(disk); //Thread.Sleep(100); } round += 1; if (round <= max_round) { userGUI.round = round; } timer = 4.0f; } }