Ejemplo n.º 1
0
 public void OnDrag(UnityEngine.EventSystems.PointerEventData eventData)
 {
     if (m_Canvas != null)
     {
         this.transform.localPosition = JerryUtil.PosScreen2Canvas(m_Canvas, JerryUtil.GetClickPos(), this.transform);
     }
 }
Ejemplo n.º 2
0
    private void DoAdjustPos()
    {
        if (MapUtil.m_SelectFurn == null)
        {
            return;
        }
        Vector3 wordPos   = MapUtil.m_SelectFurn.transform.position;
        Vector3 screenPos = Camera.main.WorldToScreenPoint(wordPos);

        screenPos.z = 0;
        this.transform.localPosition = JerryUtil.PosScreen2Canvas(m_Canvas, screenPos, this.transform);
    }
Ejemplo n.º 3
0
 public void Set2Pos(Vector3 pos)
 {
     this.transform.localPosition = JerryUtil.PosScreen2Canvas(m_Canvas, pos, this.transform);
     m_Img.enabled = true;
     Debug.LogWarning("Flag==========================");
 }