// Update is called once per frame void Update() { if (!canFight && !bannnerCtrl.isAnimating()) { canFight = true; fighter1.enable = true; fighter2.enable = true; } if (roundTime > 0 && Time.time - lastTimeUpdate > 1) { roundTime--; lastTimeUpdate = Time.time; } if (canFight) { CheckEnd(); } if (Input.GetKeyDown(KeyCode.Escape) || (SystemInfo.deviceType != DeviceType.Handheld && Input.touchCount == 3)) { if (!paused) { Pause(); } else { Resume(); } } }