修改水
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user