13 lines
342 B
C#
13 lines
342 B
C#
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;
|
|
}
|
|
} |