Files
2019-Virtual-Field/FRC 2019 Virtual Camera/Assets/Scripts/cameraControl.cs
T
Keenan D. Buckley 0b0347cdaa Added some things
2019-02-15 16:46:19 -07:00

32 lines
700 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class cameraControl : MonoBehaviour
{
public bool nyah = false;
public bool negNyah = false;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKey("left"))
{
transform.Rotate(Vector3.up, -200 * Time.deltaTime);
nyah = true;
negNyah = false;
}
if (Input.GetKey("right"))
{
transform.Rotate(Vector3.up, 200 * Time.deltaTime);
negNyah = true;
nyah = false;
}
}
}