修改水

This commit is contained in:
2026-01-01 22:00:33 +08:00
parent 040a222bd6
commit 9ceffccd39
1800 changed files with 103929 additions and 139495 deletions

View File

@@ -1,6 +1,6 @@
using UnityEngine;
namespace Obi.Samples
namespace Obi
{
[RequireComponent(typeof(Camera))]
public class LookAroundCamera : MonoBehaviour
@@ -64,10 +64,7 @@ namespace Obi.Samples
currentShot.position += delta * Time.deltaTime * movementSpeed;
var system = UnityEngine.EventSystems.EventSystem.current;
bool focusUI = system != null && system.IsPointerOverGameObject();
if (Input.GetKey(KeyCode.Mouse0) && !focusUI)
if (Input.GetKey(KeyCode.Mouse0))
{
float deltaX = Input.GetAxis("Mouse X") * rotationSpeed;
float deltaY = Input.GetAxis("Mouse Y") * rotationSpeed;