Files

32 lines
700 B
C#
Raw Permalink Normal View History

2019-02-15 16:46:19 -07:00
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;
}
}
}