Files
SVSimServer/SVSim.BattleEngine/Engine/UIDragDropRoot.cs

21 lines
321 B
C#

using UnityEngine;
[AddComponentMenu("NGUI/Interaction/Drag and Drop Root")]
public class UIDragDropRoot : MonoBehaviour
{
public static Transform root;
private void OnEnable()
{
root = base.transform;
}
private void OnDisable()
{
if (root == base.transform)
{
root = null;
}
}
}