they do not call me the ui designer

This commit is contained in:
reisenlol 2026-01-15 23:55:42 -08:00
parent daf3218043
commit 68af10bc4d
No known key found for this signature in database
14 changed files with 1677 additions and 125 deletions

View file

@ -0,0 +1,17 @@
using System;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public float panSpeed;
public bool canMoveCamera = true;
private void Update()
{
if (canMoveCamera)
{
Vector2 moveDirection = new Vector3(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"));
transform.Translate(moveDirection * (panSpeed * Time.deltaTime));
}
}
}