using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Res_Table;
using UnityEngine.UI;
using UnityEngine.EventSystems;
publicclass ModelDragController : MonoBehaviour,IDragHandler
{
private Vector2 m_Angle = Vector2.zero;
public Transform m_cTrans;
publicvoidOnDrag(PointerEventData eventData)
{
m_Angle.y = -eventData.delta.x;
if (m_cTrans != null)
m_cTrans.Rotate(m_Angle);
}
}