UIDragDropContainer.cs 310 B

12345678910111213141516
  1. using System;
  2. using UnityEngine;
  3. [AddComponentMenu("NGUI/Interaction/Drag and Drop Container")]
  4. public class UIDragDropContainer : MonoBehaviour
  5. {
  6. protected virtual void Start()
  7. {
  8. if (this.reparentTarget == null)
  9. {
  10. this.reparentTarget = base.transform;
  11. }
  12. }
  13. public Transform reparentTarget;
  14. }