mirror of
https://github.com/Team4388/2019-Virtual-Field.git
synced 2026-06-09 00:28:01 -06:00
Added some things
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user