zoom zoom
This commit is contained in:
1 parent
7be44fd86c
commit
148258255c
12 files changed
+1061
-195
No files matched your search
@@ -2,13 +2,13 @@ using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class CameraController : MonoBehaviour {
|
||||
public float speedH = 2.0f;
|
||||
public float speedV = 2.0f;
|
||||
public float speedH = 0.5f;
|
||||
public float speedV = 0.5f;
|
||||
|
||||
private float yaw = 0.0f;
|
||||
private float pitch = 0.0f;
|
||||
|
||||
void Update () {
|
||||
void Update() {
|
||||
yaw += speedH * Input.GetAxis("Mouse X");
|
||||
pitch -= speedV * Input.GetAxis("Mouse Y");
|
||||
|
||||
|
||||
Reference in new issue
Block a user