- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TimeControl : MonoBehaviour
- {
-
- // Update is called once per frame
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.RightArrow)) Time.timeScale +=1;
- if (Input.GetKeyDown(KeyCode.LeftArrow)) Time.timeScale -= 1;
- if (Input.GetKeyDown(KeyCode.DownArrow)) Time.timeScale = 1;
- }
- }