Newer
Older
Dreamsturbia-Project-IADE-Unity3D / Assets / Scripts / TimeControl.cs
@Rackday Rackday on 21 Aug 409 bytes Project Added
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;
    }
}