16 lines
298 B
C#
16 lines
298 B
C#
using UnityEngine;
|
|
|
|
[AddComponentMenu("NGUI/Interaction/Drag and Drop Container")]
|
|
public class UIDragDropContainer : MonoBehaviour
|
|
{
|
|
public Transform reparentTarget;
|
|
|
|
protected virtual void Start()
|
|
{
|
|
if (reparentTarget == null)
|
|
{
|
|
reparentTarget = base.transform;
|
|
}
|
|
}
|
|
}
|