Project_WL/Assets/Script/Ingame/RealCameraRot.cs

13 lines
342 B
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
using UnityEngine;
using UnityEngine.EventSystems;
public class RealCameraRot : MonoBehaviour, IDragHandler
{
public float RotSpeed = 0.1f;
public void OnDrag(PointerEventData eventData)
{
if (!DSUtil.CheckNull(MyValue.m_RealCamera))
MyValue.m_RealCamera.rotateAround += eventData.delta.x * RotSpeed;
}
}