Project_WL/Assets/Script/Ingame/RealCameraRot.cs

13 lines
382 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)
{
2024-12-23 00:36:04 +00:00
if (!InGameInfo.Ins.IsGameMode(eGameMode.Lobby) && !DSUtil.CheckNull(MyValue.m_RealCamera))
MyValue.m_RealCamera.Add_Rot(eventData.delta.x * RotSpeed);
2024-12-15 01:39:39 +00:00
}
}